15 lines
343 B
JavaScript
15 lines
343 B
JavaScript
const mongoose = require('mongoose');
|
|
|
|
const settingSchema = new mongoose.Schema({
|
|
timezone: {
|
|
type: String,
|
|
default: 'Asia/Ho_Chi_Minh'
|
|
},
|
|
language: {
|
|
type: String,
|
|
enum: ['vi', 'en'],
|
|
default: 'vi'
|
|
}
|
|
}, { timestamps: true });
|
|
|
|
module.exports = mongoose.model('Setting', settingSchema); |