settings.model.js 427 B

12345678910111213141516171819202122
  1. import mongoose from 'mongoose';
  2. const settingsSchema = mongoose.Schema({
  3. userId: String,
  4. contacts: [],
  5. language: String,
  6. prefersDarkMode: Boolean,
  7. contactStartPageIndex: Number,
  8. mealCategories: [{
  9. name: String,
  10. icon: Object,
  11. }],
  12. mealTags: [String],
  13. createdAt: {
  14. type: Date,
  15. default: new Date()
  16. },
  17. });
  18. const Settings = mongoose.model('Settings', settingsSchema);
  19. export default Settings;