Added: 2 way binding for data models
This commit is contained in:
@@ -16,6 +16,10 @@ const schema = new mongoose.Schema(
|
||||
type: String,
|
||||
trim: true,
|
||||
},
|
||||
company_id: {
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: "Company",
|
||||
},
|
||||
zones: [
|
||||
{
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
|
||||
Reference in New Issue
Block a user