Browse Source

Add user config model for future usage

development
Abheek Dhawan 3 years ago
parent
commit
8e8f94c104
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 20
      src/models/userConfig.ts

20
src/models/userConfig.ts

@ -0,0 +1,20 @@
import mongoose from 'mongoose';
const userConfigSchema = new mongoose.Schema({
authorID: {
type: String,
required: true,
},
subjects: {
type: [String],
required: false,
default: null,
},
gradeLevels: {
type: [String],
required: false,
default: null,
},
});
export default mongoose.model('UserConfig', userConfigSchema);
Loading…
Cancel
Save