@becomes/cms
Version:
Simple CMS for building APIs.
31 lines • 926 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Webhook = void 0;
var mongoose_1 = require("mongoose");
var Webhook = (function () {
function Webhook(_id, createdAt, updatedAt, name, desc, body) {
this._id = _id;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
this.name = name;
this.desc = desc;
this.body = body;
}
Object.defineProperty(Webhook, "schema", {
get: function () {
return new mongoose_1.Schema({
_id: mongoose_1.Types.ObjectId,
createdAt: Number,
updatedAt: Number,
name: String,
desc: String,
body: String,
});
},
enumerable: false,
configurable: true
});
return Webhook;
}());
exports.Webhook = Webhook;
//# sourceMappingURL=webhook.model.js.map