feat: Adding alert_list to branches/loads
This commit is contained in:
@@ -13,6 +13,7 @@ const schema = new Schema({
|
||||
address : { type: String },
|
||||
type : { type : 'string' , enum : ['loading', 'unloading', 'both'] },
|
||||
zipcode : { type : 'string', maxLength : 10 },
|
||||
alert_list: [{ type: String, lowercase: true }],
|
||||
});
|
||||
|
||||
module.exports = mongoose.model( "branches", schema );
|
||||
|
||||
@@ -41,6 +41,8 @@ const schema = new Schema({
|
||||
posted_by_name: { type: String }, // search purpose
|
||||
bidder: { type: Schema.Types.ObjectId, ref: 'users' }, // who sent the proposal (carrier user)
|
||||
|
||||
alert_list: [{ type: String, lowercase: true }],
|
||||
|
||||
shipper_warehouse : { type: Schema.Types.ObjectId, ref: 'branches' },
|
||||
|
||||
origin: address,
|
||||
|
||||
Reference in New Issue
Block a user