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."
55 lines • 4.32 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;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.InternalUserModel = void 0;
const annotations_1 = require("@nova-odm/annotations");
const base_model_1 = require("../base-model");
let InternalUserModel = class InternalUserModel extends base_model_1.BaseModel {
};
exports.InternalUserModel = InternalUserModel;
__decorate([
(0, annotations_1.hashKey)({ type: 'String' }),
__metadata("design:type", String)
], InternalUserModel.prototype, "userId", void 0);
__decorate([
(0, annotations_1.attribute)(),
__metadata("design:type", String)
], InternalUserModel.prototype, "role", void 0);
__decorate([
(0, annotations_1.attribute)(),
__metadata("design:type", String)
], InternalUserModel.prototype, "department", void 0);
__decorate([
(0, annotations_1.attribute)(),
__metadata("design:type", String)
], InternalUserModel.prototype, "userName", void 0);
__decorate([
(0, annotations_1.attribute)(),
__metadata("design:type", String)
], InternalUserModel.prototype, "phoneNumber", void 0);
__decorate([
(0, annotations_1.attribute)({
indexKeyConfigurations: { "emailIndex": "HASH" }, type: 'String'
}),
__metadata("design:type", String)
], InternalUserModel.prototype, "emailId", void 0);
__decorate([
(0, annotations_1.attribute)(),
__metadata("design:type", String)
], InternalUserModel.prototype, "dob", void 0);
__decorate([
(0, annotations_1.attribute)(),
__metadata("design:type", String)
], InternalUserModel.prototype, "gender", void 0);
exports.InternalUserModel = InternalUserModel = __decorate([
(0, annotations_1.table)("InternalUserTable")
], InternalUserModel);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJuYWwtdXNlci1tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbnRlcm5hbC11c2VyL2ludGVybmFsLXVzZXItbW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQ0EsdURBQWtFO0FBQ2xFLDhDQUEwQztBQUduQyxJQUFNLGlCQUFpQixHQUF2QixNQUFNLGlCQUFrQixTQUFRLHNCQUFTO0NBcUIvQyxDQUFBO0FBckJZLDhDQUFpQjtBQUUxQjtJQURDLElBQUEscUJBQU8sRUFBQyxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsQ0FBQzs7aURBQ2I7QUFFZjtJQURDLElBQUEsdUJBQVMsR0FBRTs7K0NBQ0U7QUFFZDtJQURDLElBQUEsdUJBQVMsR0FBRTs7cURBQ1E7QUFFcEI7SUFEQyxJQUFBLHVCQUFTLEdBQUU7O21EQUNNO0FBRWxCO0lBREMsSUFBQSx1QkFBUyxHQUFFOztzREFDUTtBQU1wQjtJQUxDLElBQUEsdUJBQVMsRUFDTjtRQUNJLHNCQUFzQixFQUFFLEVBQUUsWUFBWSxFQUFFLE1BQU0sRUFBRSxFQUFFLElBQUksRUFBRSxRQUFRO0tBQ25FLENBQ0o7O2tEQUNnQjtBQUVqQjtJQURDLElBQUEsdUJBQVMsR0FBRTs7OENBQ0M7QUFFYjtJQURDLElBQUEsdUJBQVMsR0FBRTs7aURBQ0k7NEJBcEJQLGlCQUFpQjtJQUQ3QixJQUFBLG1CQUFLLEVBQUMsbUJBQW1CLENBQUM7R0FDZCxpQkFBaUIsQ0FxQjdCIiwic291cmNlc0NvbnRlbnQiOlsiXG5pbXBvcnQgeyBhdHR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