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

25 lines
915 B
JavaScript
Raw Normal View History

2021-02-05 22:01:01 +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-05 22:01:01 +01:00
Object.defineProperty(exports, "__esModule", { value: true });
2021-02-13 14:15:59 +01:00
exports.InviteModel = exports.InviteSchema = 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.InviteSchema = new mongoose_1.Schema({
code: String,
temporary: Boolean,
uses: Number,
max_uses: Number,
max_age: Number,
2021-03-08 18:41:31 +01:00
created_at: Date,
2021-02-21 19:09:37 +01:00
guild_id: mongoose_1.Types.Long,
channel_id: mongoose_1.Types.Long,
inviter_id: mongoose_1.Types.Long,
//! What the fucking shit is this
target_user_id: mongoose_1.Types.Long,
2021-02-13 14:15:59 +01:00
target_user_type: Number,
});
2021-02-16 21:16:56 +01:00
// @ts-ignore
exports.InviteModel = Database_1.default.model("Invite", exports.InviteSchema, "invites");
2021-02-05 22:01:01 +01:00
//# sourceMappingURL=Invite.js.map