26 lines
519 B
JavaScript
26 lines
519 B
JavaScript
const mongoose = require('mongoose')
|
|
|
|
|
|
|
|
const ComplaintSchema = mongoose.Schema({
|
|
|
|
fullName: String,
|
|
national: String,
|
|
phoneNumber: String,
|
|
deviceNumber: String,
|
|
email: String,
|
|
receptionCode: String,
|
|
caption: String,
|
|
callType: Boolean,
|
|
type:{
|
|
type:Number,
|
|
default:0
|
|
},
|
|
read: { type: Boolean, default: false },
|
|
complete: { type: Boolean, default: false },
|
|
|
|
})
|
|
|
|
|
|
module.exports = mongoose.model('Complaint', ComplaintSchema)
|