add new back

This commit is contained in:
2025-10-27 18:58:38 +03:00
parent a6065dd95c
commit 6c190b80fb
16 changed files with 996 additions and 147 deletions

View File

@@ -35,6 +35,16 @@ const buyProductSchema = new mongoose.Schema({
default: Date.now
}
}],
acceptedBy: [{
companyId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Company'
},
acceptedAt: {
type: Date,
default: Date.now
}
}],
status: {
type: String,
enum: ['draft', 'published'],