1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00
server/dist/models/Event.js

19 lines
781 B
JavaScript
Raw Normal View History

2021-02-08 16:29:36 +01:00
"use strict";
2021-02-16 21:16:56 +01:00
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
2021-02-08 16:29:36 +01:00
Object.defineProperty(exports, "__esModule", { value: true });
2021-02-13 14:15:59 +01:00
exports.EventModel = exports.EventSchema = void 0;
const mongoose_1 = require("mongoose");
2021-02-16 21:16:56 +01:00
const Database_1 = __importDefault(require("../util/Database"));
2021-02-13 14:15:59 +01:00
exports.EventSchema = new mongoose_1.Schema({
guild_id: mongoose_1.Types.Long,
user_id: mongoose_1.Types.Long,
channel_id: mongoose_1.Types.Long,
created_at: { type: Number, required: true },
event: { type: String, required: true },
data: Object,
});
2021-02-16 21:16:56 +01:00
// @ts-ignore
exports.EventModel = Database_1.default.model("Event", exports.EventSchema, "events");
2021-02-08 16:29:36 +01:00
//# sourceMappingURL=Event.js.map