summary refs log tree commit diff
path: root/dist/models/Role.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-13 14:15:59 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-13 14:15:59 +0100
commita44da1024dc39e2d2fef296fc1d4e5894090fce0 (patch)
tree0e9338baa9e64e8a8841913d18eddc5a2bb1a333 /dist/models/Role.js
parent:sparkles: mongoose Schemas (diff)
downloadserver-a44da1024dc39e2d2fef296fc1d4e5894090fce0.tar.xz
:zap: Config and database update
Diffstat (limited to 'dist/models/Role.js')
-rw-r--r--dist/models/Role.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/dist/models/Role.js b/dist/models/Role.js

index 467f4294..9a0d0932 100644 --- a/dist/models/Role.js +++ b/dist/models/Role.js
@@ -1,3 +1,19 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.RoleModel = exports.RoleSchema = void 0; +const mongoose_1 = require("mongoose"); +exports.RoleSchema = new mongoose_1.Schema({ + id: mongoose_1.Types.Long, + color: Number, + hoist: Boolean, + managed: Boolean, + mentionable: Boolean, + name: String, + permissions: mongoose_1.Types.Long, + position: Number, + tags: { + bot_id: mongoose_1.Types.Long, + }, +}); +exports.RoleModel = mongoose_1.model("Role", exports.RoleSchema, "roles"); //# sourceMappingURL=Role.js.map \ No newline at end of file