forked from oat/in-the-database-2
user schema
This commit is contained in:
parent
108eec139d
commit
6ff85af711
1 changed files with 8 additions and 1 deletions
|
@ -29,4 +29,11 @@ const FileSchema = new Schema({
|
|||
charts: [Chart]
|
||||
});
|
||||
|
||||
export const File = mongoose.model('File', FileSchema);
|
||||
export const File = mongoose.model('File', FileSchema);
|
||||
|
||||
const UserSchema = new Schema({ // this is pretty much just a discord user lol
|
||||
id: String, // cus longass number
|
||||
approved: Boolean
|
||||
});
|
||||
|
||||
export const User = mongoose.model('User', UserSchema);
|
Loading…
Reference in a new issue