Fix jwt-token

This commit is contained in:
2025-08-28 07:22:57 +02:00
parent 74d5114da6
commit 67ad1506b3
5 changed files with 517 additions and 14 deletions

View File

@@ -34,6 +34,11 @@ module.exports = (sequelize) => {
defaultValue: true,
comment: 'Whether the device is currently active'
},
is_approved: {
type: DataTypes.BOOLEAN,
defaultValue: false,
comment: 'Whether the device is approved to send data'
},
last_heartbeat: {
type: DataTypes.DATE,
allowNull: true,
@@ -81,6 +86,9 @@ module.exports = (sequelize) => {
},
{
fields: ['is_active']
},
{
fields: ['is_approved']
}
]
});