Initial commit
This commit is contained in:
11
backend/models/Setting.js
Normal file
11
backend/models/Setting.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const mongoose = require("mongoose");
|
||||
|
||||
const settingSchema = new mongoose.Schema(
|
||||
{
|
||||
key: { type: String, required: true, unique: true },
|
||||
value: { type: mongoose.Schema.Types.Mixed },
|
||||
},
|
||||
{ timestamps: true }
|
||||
);
|
||||
|
||||
module.exports = mongoose.model("Setting", settingSchema);
|
||||
Reference in New Issue
Block a user