UNPKG

@becomes/cms

Version:

Simple CMS for building APIs.

31 lines 956 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Entry = void 0; var mongoose_1 = require("mongoose"); var Entry = (function () { function Entry(_id, createdAt, updatedAt, templateId, userId, content) { this._id = _id; this.createdAt = createdAt; this.updatedAt = updatedAt; this.templateId = templateId; this.userId = userId; this.content = content; } Object.defineProperty(Entry, "schema", { get: function () { return new mongoose_1.Schema({ _id: mongoose_1.Types.ObjectId, createdAt: Number, updatedAt: Number, templateId: String, userId: String, content: [Object], }); }, enumerable: false, configurable: true }); return Entry; }()); exports.Entry = Entry; //# sourceMappingURL=entry.model.js.map