UNPKG

@becomes/cms

Version:

Simple CMS for building APIs.

37 lines 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.User = void 0; var mongoose_1 = require("mongoose"); var User = (function () { function User(_id, createdAt, updatedAt, username, email, password, roles, refreshTokens, customPool) { this._id = _id; this.createdAt = createdAt; this.updatedAt = updatedAt; this.username = username; this.email = email; this.password = password; this.roles = roles; this.refreshTokens = refreshTokens; this.customPool = customPool; } Object.defineProperty(User, "schema", { get: function () { return new mongoose_1.Schema({ _id: mongoose_1.Types.ObjectId, createdAt: Number, updatedAt: Number, username: String, email: String, password: String, roles: [Object], refreshTokens: [Object], customPool: Object, }); }, enumerable: false, configurable: true }); return User; }()); exports.User = User; //# sourceMappingURL=user.model.js.map