12345678910111213141516171819202122 |
- import mongoose from 'mongoose';
- const settingsSchema = mongoose.Schema({
- userId: String,
- contacts: [],
- language: String,
- prefersDarkMode: Boolean,
- contactStartPageIndex: Number,
- mealCategories: [{
- name: String,
- icon: Object,
- }],
- mealTags: [String],
- createdAt: {
- type: Date,
- default: new Date()
- },
- });
- const Settings = mongoose.model('Settings', settingsSchema);
- export default Settings;
|