Fix jwt-token

This commit is contained in:
2025-09-22 05:39:31 +02:00
parent 84ed2f52db
commit af3208b965
2 changed files with 86 additions and 0 deletions

View File

@@ -310,6 +310,14 @@ module.exports = {
},
comment: 'ID of the device sending heartbeat'
},
tenant_id: {
type: Sequelize.UUID,
allowNull: true, // Nullable for backward compatibility
references: {
model: 'tenants',
key: 'id'
},
},
device_key: {
type: Sequelize.STRING,
allowNull: true,