You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Natsuki/models/user.js

23 lines
922 B

const mongoose = require('mongoose');
const UserSchema = new mongoose.Schema({
uid: {type: String, unique: true},
commands: {type: Number, default: 0},
statusmsg: {type: String, default: ''},
statustype: {type: String, default: ''},
statusclearmode: {type: String, default: 'auto'},
statusclearat: {type: Date, default: null},
statussetat: {type: Date, default: null},
statusshowcleartime: {type: Boolean, default: true},
statusshowsettime: {type: Boolean, default: true},
support: {type: Boolean, default: false},
staff: {type: Boolean, default: false},
admin: {type: Boolean, default: false},
developer: {type: Boolean, default: false},
blacklisted: {type: Boolean, default: false},
donator: {type: Boolean, default: false},
bio: {type: String, default: ''},
color: {type: String, default: ''}
});
module.exports = mongoose.model("user", UserSchema);