This commit is contained in:
payacom
2026-08-31 20:45:41 +03:30
parent fa9f23c61d
commit 3f416a7a60
367 changed files with 621895 additions and 6443 deletions

View File

@@ -18,7 +18,8 @@ const modelSchema = new mongoose.Schema({
type: String
},
academyId:{
type: String
type: mongoose.Schema.Types.ObjectId,
ref: 'Academy'
},
caption: {
type: String,
@@ -32,8 +33,8 @@ const modelSchema = new mongoose.Schema({
type: String,
required: false,
trim: true,
enum: ['pending', 'accept', 'reject'],
default: 'accept',
enum: ['pending', 'temp_accept', 'accept', 'reject'],
default: 'temp_accept',
},
user_id: {
type: mongoose.Schema.Types.ObjectId,
@@ -71,6 +72,16 @@ const modelSchema = new mongoose.Schema({
teacher_name: {
type: String
},
is_free: {
type: Boolean,
default: false,
},
contactInfo: {
mobile: { type: String, default: null },
telegramLink: { type: String, default: null },
whatsappNumber: { type: String, default: null },
instagramLink: { type: String, default: null },
},
});
modelSchema.plugin(timestamp);