Added: 2 way binding for data models

This commit is contained in:
Llewellyn D'souza
2021-12-21 17:58:55 +05:30
parent dbfe4f4157
commit bd0d50868f
6 changed files with 24 additions and 0 deletions

View File

@@ -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,