diff --git a/models/infra.js b/models/infra.js new file mode 100644 index 0000000..6216202 --- /dev/null +++ b/models/infra.js @@ -0,0 +1,12 @@ +import connector from "#models/databaseUtil"; + +const infrastructureSchema = { + infraID: { type: Number, required: true }, + infraName: { type: String, required: true }, + infraType: { type: String, required: true }, + infraWing: { type: String, required: true }, + floor: { type: Number, required: true }, + capacity: { type: Number, required: true }, +}; + +const infrastructureModel = new connector.model("Infrastructure", infrastructureSchema);