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

26 lines
1008 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},
3 years ago
statusSleeping: Boolean,
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: ''},
3 years ago
color: {type: String, default: ''},
3 years ago
msg: {type: Boolean},
marriedTo: {type: String}
});
module.exports = mongoose.model("user", UserSchema);