Skip to content

Commit d4ed087

Browse files
committed
35 create infra model1
1 parent a0441b8 commit d4ed087

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

models/infra.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { connector } = require("./databaseUtil");
1+
const { connector } = require("#models/databaseUtil");
22

33
const infrastructureSchema = {
44
infraID: {type: Number, required: true},
@@ -9,5 +9,4 @@ const infrastructureSchema = {
99
capacity: {type:Number, required: true}
1010
};
1111

12-
const infrastructureModel = new connector.model("Infrastructure", infrastructureSchema);;
13-
module.exports = {};
12+
const infrastructureModel = new connector.model("Infrastructure", infrastructureSchema);

0 commit comments

Comments
 (0)