Fix jwt-token
This commit is contained in:
@@ -39,6 +39,15 @@ module.exports = (sequelize) => {
|
||||
defaultValue: false,
|
||||
comment: 'Whether the device is approved to send data'
|
||||
},
|
||||
tenant_id: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: true,
|
||||
references: {
|
||||
model: 'tenants',
|
||||
key: 'id'
|
||||
},
|
||||
comment: 'Foreign key to tenants table for multi-tenant isolation'
|
||||
},
|
||||
last_heartbeat: {
|
||||
type: DataTypes.DATE,
|
||||
allowNull: true,
|
||||
|
||||
Reference in New Issue
Block a user