cmp-aws-database
Version:
The package "cmp-aws-database" is for its database, which defines global tables. These tables are designed to be imported and used across multiple applications of "craft-my-plate."
69 lines • 5.78 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddressModel = void 0;
const annotations_1 = require("@nova-odm/annotations");
const base_model_1 = require("../../../base-model");
let AddressModel = class AddressModel extends base_model_1.BaseModel {
};
exports.AddressModel = AddressModel;
__decorate([
(0, annotations_1.autoGeneratedHashKey)({ type: "String" })
], AddressModel.prototype, "addressId", void 0);
__decorate([
(0, annotations_1.attribute)({ indexKeyConfigurations: { "userIndex": "HASH" }, type: 'String' })
], AddressModel.prototype, "userId", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "label", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "labelName", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "link", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "addressLine1", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "addressLine2", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "addressLine3", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "pincode", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "city", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "state", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "latitude", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "longitude", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "landmark", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "deliveryFee", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "type", void 0);
__decorate([
(0, annotations_1.attribute)()
], AddressModel.prototype, "instructions", void 0);
exports.AddressModel = AddressModel = __decorate([
(0, annotations_1.table)("AddressTable")
], AddressModel);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy1tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jdXN0b21lci11c2VyL29yZGVyLW1vZHVsZS9hZGRyZXNzL2FkZHJlc3MtbW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUEsdURBQStFO0FBQy9FLG9EQUFnRDtBQUl6QyxJQUFNLFlBQVksR0FBbEIsTUFBTSxZQUFhLFNBQVEsc0JBQVM7Q0FxRDFDLENBQUE7QUFyRFksb0NBQVk7QUFJckI7SUFEQyxJQUFBLGtDQUFvQixFQUFDLEVBQUUsSUFBSSxFQUFFLFFBQVEsRUFBRSxDQUFDOytDQUN2QjtBQUdsQjtJQURDLElBQUEsdUJBQVMsRUFBQyxFQUFFLHNCQUFzQixFQUFFLEVBQUUsV0FBVyxFQUFFLE1BQU0sRUFBRSxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsQ0FBQzs0Q0FDaEU7QUFHZjtJQURDLElBQUEsdUJBQVMsR0FBRTsyQ0FDRTtBQUdkO0lBREMsSUFBQSx1QkFBUyxHQUFFOytDQUNNO0FBR2xCO0lBREMsSUFBQSx1QkFBUyxHQUFFOzBDQUNDO0FBR2I7SUFEQyxJQUFBLHVCQUFTLEdBQUU7a0RBQ1M7QUFHckI7SUFEQyxJQUFBLHVCQUFTLEdB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