full
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user