This commit is contained in:
newtbot
2024-01-05 19:42:02 +08:00
parent b978f07867
commit a9912d4ddc
17 changed files with 628 additions and 353 deletions

View File

@ -23,7 +23,7 @@ const sensorModel = sequelize.define(
isNumeric: true,
},
},
sensorname: {
name: {
type: DataTypes.STRING,
allowNull: false,
length: 10,
@ -79,7 +79,7 @@ const sensorModel = sequelize.define(
},
},
},
location: {
locationid: {
type: DataTypes.INTEGER,
allowNull: true,
length: 100,