@becomes/cms
Version:
Simple CMS for building APIs.
33 lines • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Language = void 0;
var mongoose_1 = require("mongoose");
var Language = (function () {
function Language(_id, createdAt, updatedAt, userId, code, name, nativeName) {
this._id = _id;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
this.userId = userId;
this.code = code;
this.name = name;
this.nativeName = nativeName;
}
Object.defineProperty(Language, "schema", {
get: function () {
return new mongoose_1.Schema({
_id: mongoose_1.Types.ObjectId,
createdAt: Number,
updatedAt: Number,
userId: String,
code: String,
name: String,
nativeName: String,
});
},
enumerable: false,
configurable: true
});
return Language;
}());
exports.Language = Language;
//# sourceMappingURL=language.model.js.map