Reformatted stuff, added data to imports

This commit is contained in:
Emily 2020-04-06 15:54:45 +10:00
parent 95d84cfaef
commit b2531d49b0
10 changed files with 184 additions and 60 deletions

View file

@ -0,0 +1,28 @@
const { Schema, model } = require('mongoose')
const { defaultPrefix } = require('../config')
module.exports = model('User', new Schema({
_id: Schema.Types.ObjectId,
userID: String,
prefix: {
type: String,
default: defaultPrefix
},
profile: {
type: Object,
default: {
bio: 'I should run ~setbio :P',
birthdate: null,
pronouns: null,
favColour: null
}
},
// polyamory uwu
marriages: {
type: Array,
default: []
}
}))