diff --git a/server/migrations/20250820000001-create-initial-tables.js b/server/migrations/20250820000001-create-initial-tables.js index ebf7562..b42d91b 100644 --- a/server/migrations/20250820000001-create-initial-tables.js +++ b/server/migrations/20250820000001-create-initial-tables.js @@ -151,15 +151,15 @@ module.exports = { allowNull: false }, first_name: { - type: DataTypes.STRING, + type: Sequelize.STRING, allowNull: true }, last_name: { - type: DataTypes.STRING, + type: Sequelize.STRING, allowNull: true }, phone_number: { - type: DataTypes.STRING, + type: Sequelize.STRING, allowNull: true, comment: 'Phone number for SMS alerts (include country code)' }, @@ -179,7 +179,7 @@ module.exports = { comment: 'User ID from external authentication provider' }, sms_alerts_enabled: { - type: DataTypes.BOOLEAN, + type: Sequelize.BOOLEAN, defaultValue: false, comment: 'Whether user wants to receive SMS alerts' }, @@ -189,16 +189,16 @@ module.exports = { comment: 'Whether user is active' }, email_alerts_enabled: { - type: DataTypes.BOOLEAN, + type: Sequelize.BOOLEAN, defaultValue: true, comment: 'Whether user wants to receive email alerts' }, last_login: { - type: DataTypes.DATE, + type: Sequelize.DATE, allowNull: true }, timezone: { - type: DataTypes.STRING, + type: Sequelize.STRING, defaultValue: 'UTC', comment: 'User timezone for alert scheduling' },