16 lines
374 B
JavaScript
16 lines
374 B
JavaScript
|
|
const mongoose = require('mongoose');
|
||
|
|
const Schema = mongoose.Schema;
|
||
|
|
|
||
|
|
const GuestToggleSchema = new Schema({
|
||
|
|
status: {
|
||
|
|
type: Boolean,
|
||
|
|
default: false
|
||
|
|
},
|
||
|
|
created_at: {
|
||
|
|
type: Date,
|
||
|
|
default: Date.now
|
||
|
|
}
|
||
|
|
}, { versionKey: false });
|
||
|
|
|
||
|
|
const GuestToggle = mongoose.model('GuestToggle', GuestToggleSchema);
|
||
|
|
module.exports = GuestToggle;
|