diff --git a/server/migrations/20250913000002-add-device-tenant-support.js b/server/migrations/20250913000002-add-device-tenant-support.js index bb9fbe8..57b5e8a 100644 --- a/server/migrations/20250913000002-add-device-tenant-support.js +++ b/server/migrations/20250913000002-add-device-tenant-support.js @@ -21,7 +21,7 @@ module.exports = { if (!tableDescription.tenant_id) { // Add tenant_id column to devices table await queryInterface.addColumn('devices', 'tenant_id', { - type: Sequelize.INTEGER, + type: Sequelize.UUID, allowNull: true, // Nullable for backward compatibility references: { model: 'tenants',