Fix jwt-token

This commit is contained in:
2025-09-22 05:32:39 +02:00
parent 5f2e890202
commit 84ed2f52db

View File

@@ -21,7 +21,7 @@ module.exports = {
if (!tableDescription.tenant_id) { if (!tableDescription.tenant_id) {
// Add tenant_id column to devices table // Add tenant_id column to devices table
await queryInterface.addColumn('devices', 'tenant_id', { await queryInterface.addColumn('devices', 'tenant_id', {
type: Sequelize.INTEGER, type: Sequelize.UUID,
allowNull: true, // Nullable for backward compatibility allowNull: true, // Nullable for backward compatibility
references: { references: {
model: 'tenants', model: 'tenants',