Skip to content

Commit 70bfbff

Browse files
Merge pull request #77 from tcet-opensource/35-create_infra_model
35 create infra model
2 parents 61f2cc2 + 1673851 commit 70bfbff

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

models/infra.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)