Fix jwt-token

This commit is contained in:
2025-09-22 05:27:42 +02:00
parent d0017ed5f2
commit 5f2e890202

View File

@@ -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'
},