Abheek Dhawan
3 years ago
1 changed files with 20 additions and 0 deletions
@ -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…
Reference in new issue