feat: added dashboard controllers

This commit is contained in:
Sathishkumar Krishnan
2021-12-29 07:15:34 +05:30
parent cd00c9b7bb
commit 60e6f0cb94
8 changed files with 361 additions and 6 deletions

View File

@@ -18,6 +18,11 @@ const schema = new mongoose.Schema(
required: true,
trim: true,
},
material: {
type: mongoose.Schema.Types.ObjectId,
ref: "Material",
required: true,
},
manufacturer: {
type: String,
required: true,