user schema

This commit is contained in:
oat 2020-09-03 08:44:41 +03:00
parent 108eec139d
commit 6ff85af711
Signed by: oat
GPG key ID: DD83A9617A252385

View file

@ -29,4 +29,11 @@ const FileSchema = new Schema({
charts: [Chart] 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);