1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 21:23:24 +01:00
server/dist/models/Member.js

44 lines
1.4 KiB
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.MemberModel = exports.MemberSchema = 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
const MuteConfig = {
end_time: Number,
selected_time_window: Number,
};
exports.MemberSchema = new mongoose_1.Schema({
id: mongoose_1.Types.Long,
guild_id: mongoose_1.Types.Long,
2021-02-13 14:15:59 +01:00
nick: String,
roles: [mongoose_1.Types.Long],
joined_at: Number,
premium_since: Number,
deaf: Boolean,
mute: Boolean,
pending: Boolean,
permissions: mongoose_1.Types.Long,
settings: {
channel_overrides: [
{
channel_id: mongoose_1.Types.Long,
message_notifications: Number,
mute_config: MuteConfig,
muted: Boolean,
},
],
message_notifications: Number,
mobile_push: Boolean,
mute_config: MuteConfig,
muted: Boolean,
suppress_everyone: Boolean,
suppress_roles: Boolean,
version: Number,
},
});
2021-02-16 21:16:56 +01:00
// @ts-ignore
exports.MemberModel = Database_1.default.model("Member", exports.MemberSchema, "members");
2021-02-05 22:01:01 +01:00
//# sourceMappingURL=Member.js.map