Fix jwt-token
This commit is contained in:
@@ -151,15 +151,15 @@ module.exports = {
|
|||||||
allowNull: false
|
allowNull: false
|
||||||
},
|
},
|
||||||
first_name: {
|
first_name: {
|
||||||
type: DataTypes.STRING,
|
type: Sequelize.STRING,
|
||||||
allowNull: true
|
allowNull: true
|
||||||
},
|
},
|
||||||
last_name: {
|
last_name: {
|
||||||
type: DataTypes.STRING,
|
type: Sequelize.STRING,
|
||||||
allowNull: true
|
allowNull: true
|
||||||
},
|
},
|
||||||
phone_number: {
|
phone_number: {
|
||||||
type: DataTypes.STRING,
|
type: Sequelize.STRING,
|
||||||
allowNull: true,
|
allowNull: true,
|
||||||
comment: 'Phone number for SMS alerts (include country code)'
|
comment: 'Phone number for SMS alerts (include country code)'
|
||||||
},
|
},
|
||||||
@@ -179,7 +179,7 @@ module.exports = {
|
|||||||
comment: 'User ID from external authentication provider'
|
comment: 'User ID from external authentication provider'
|
||||||
},
|
},
|
||||||
sms_alerts_enabled: {
|
sms_alerts_enabled: {
|
||||||
type: DataTypes.BOOLEAN,
|
type: Sequelize.BOOLEAN,
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
comment: 'Whether user wants to receive SMS alerts'
|
comment: 'Whether user wants to receive SMS alerts'
|
||||||
},
|
},
|
||||||
@@ -189,16 +189,16 @@ module.exports = {
|
|||||||
comment: 'Whether user is active'
|
comment: 'Whether user is active'
|
||||||
},
|
},
|
||||||
email_alerts_enabled: {
|
email_alerts_enabled: {
|
||||||
type: DataTypes.BOOLEAN,
|
type: Sequelize.BOOLEAN,
|
||||||
defaultValue: true,
|
defaultValue: true,
|
||||||
comment: 'Whether user wants to receive email alerts'
|
comment: 'Whether user wants to receive email alerts'
|
||||||
},
|
},
|
||||||
last_login: {
|
last_login: {
|
||||||
type: DataTypes.DATE,
|
type: Sequelize.DATE,
|
||||||
allowNull: true
|
allowNull: true
|
||||||
},
|
},
|
||||||
timezone: {
|
timezone: {
|
||||||
type: DataTypes.STRING,
|
type: Sequelize.STRING,
|
||||||
defaultValue: 'UTC',
|
defaultValue: 'UTC',
|
||||||
comment: 'User timezone for alert scheduling'
|
comment: 'User timezone for alert scheduling'
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user