nyx/models/users.js

32 lines
525 B
JavaScript
Raw Permalink Normal View History

2021-06-12 12:53:51 +02:00
const mongoose = require("mongoose");
module.exports = mongoose.model(
"user",
new mongoose.Schema({
User: String,
Tier: {
type: Number,
default: 0,
},
Premium: {
type: Boolean,
default: false,
},
Blacklist: {
type: Boolean,
default: false,
},
Blacklist_Reason: {
type: String,
default: "null",
},
PremiumServers: {
type: Array,
default: [],
},
2021-07-13 05:17:39 +02:00
CommandUsed: {
type: Number,
default: 0,
},
2021-06-12 12:53:51 +02:00
})
);