This commit is contained in:
Mr Swift
2024-04-27 20:10:55 +03:30
parent f52f5496c5
commit ee6bd01224
30 changed files with 6503 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
const mongoose = require("mongoose");
const newsSchema = new mongoose.Schema({
email: {
type: String,
unique: true
}
},
{
timestamps: true,
versionKey: false
}
);
module.exports = mongoose.model("News", newsSchema);
+59
View File
@@ -0,0 +1,59 @@
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);