backend validation wip
This commit is contained in:
@ -12,7 +12,7 @@ const sensorModel = sequelize.define("sensors",
|
||||
primaryKey: true,
|
||||
autoIncrement: true,
|
||||
},
|
||||
sensortype: {
|
||||
sensorname: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
length: 10,
|
||||
@ -22,6 +22,11 @@ const sensorModel = sequelize.define("sensors",
|
||||
allowNull: false,
|
||||
length: 10,
|
||||
},
|
||||
mac_address: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
length: 12,
|
||||
},
|
||||
description: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
|
Reference in New Issue
Block a user