We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61f2cc2 + 1673851 commit 70bfbffCopy full SHA for 70bfbff
models/infra.js
@@ -0,0 +1,12 @@
1
+import connector from "#models/databaseUtil";
2
+
3
+const infrastructureSchema = {
4
+ infraID: { type: Number, required: true },
5
+ infraName: { type: String, required: true },
6
+ infraType: { type: String, required: true },
7
+ infraWing: { type: String, required: true },
8
+ floor: { type: Number, required: true },
9
+ capacity: { type: Number, required: true },
10
+};
11
12
+const infrastructureModel = new connector.model("Infrastructure", infrastructureSchema);
0 commit comments