18 lines
335 B
JavaScript
18 lines
335 B
JavaScript
const mongoose = require('mongoose')
|
|
|
|
const contactUsSchema = mongoose.Schema({
|
|
name: String,
|
|
email: String,
|
|
subject: String,
|
|
message: String,
|
|
locale: {
|
|
type: String,
|
|
enum: ['fa', 'en'],
|
|
default: 'en'
|
|
},
|
|
read: {type: Boolean, default: false}
|
|
})
|
|
|
|
|
|
module.exports = mongoose.model('ContactUs', contactUsSchema)
|