From 8e8f94c104f26d49021826b8982c8cb337c926c1 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Tue, 5 Apr 2022 21:43:21 -0500 Subject: [PATCH] Add user config model for future usage --- src/models/userConfig.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/models/userConfig.ts diff --git a/src/models/userConfig.ts b/src/models/userConfig.ts new file mode 100644 index 0000000..d2c1852 --- /dev/null +++ b/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);