module.exports = { _id: { type: String, required: true, index: true, unique: true, min: 12, max: 12 }, username: { type: String, required: true }, role: { type: String, default: 'default', required: true }, email: { verified: { type: Boolean, default: false, required: true }, verificationToken: String, address: String }, services: { password: { password: String, reset: { code: { type: String, min: 8, max: 8 }, expires: { type: Date } }, set: { code: { type: String, min: 8, max: 8 }, expires: { type: Date } } }, github: { id: Number, access_token: String } }, ban: { banned: { type: Boolean, default: false, required: true }, reason: String, bannedAt: Date, bannedUntil: Date }, statistics: { songsRequested: { type: Number, default: 0, required: true } }, liked: [{ type: String }], disliked: [{ type: String }], createdAt: { type: Date, default: Date.now() } };