60 lines
1.0 KiB
JavaScript
60 lines
1.0 KiB
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const siteSchema = new mongoose.Schema(
|
|
{
|
|
profile: {
|
|
type: String,
|
|
default: "main",
|
|
unique: true
|
|
},
|
|
name:{
|
|
type: String,
|
|
default: "Dlearn",
|
|
},
|
|
desc:{
|
|
type: String,
|
|
default: "Dlearn, marketplace core by Swift",
|
|
},
|
|
logo:{
|
|
type: String,
|
|
default: "/upload/Default.png",
|
|
},
|
|
tel1:{
|
|
type: String,
|
|
default: "+9391885657",
|
|
},
|
|
tel2:{
|
|
type: String,
|
|
default: "+9391885657",
|
|
},
|
|
address:{
|
|
type: String,
|
|
default: "Iran, Markazi",
|
|
},
|
|
socialMedia:[
|
|
{
|
|
kind: String,
|
|
address:String
|
|
}
|
|
],
|
|
emailHost:String,
|
|
emailPort:String,
|
|
emailUser:String,
|
|
emailPass:String,
|
|
smsNumber:String,
|
|
smsUser:String,
|
|
smsPass:String,
|
|
underConstruction:{
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
|
|
},
|
|
{
|
|
timestamps: true,
|
|
versionKey: false
|
|
}
|
|
);
|
|
|
|
module.exports = mongoose.model("Site", siteSchema);
|