Fix jwt-token

This commit is contained in:
2025-09-13 13:57:40 +02:00
parent 897f959c49
commit 98c75c125d
5 changed files with 392 additions and 13 deletions

View File

@@ -82,6 +82,25 @@ module.exports = (sequelize) => {
comment: 'Tenant feature limits and enabled features'
},
// Security Configuration
ip_whitelist: {
type: DataTypes.JSONB,
allowNull: true,
defaultValue: null,
comment: 'Array of allowed IP addresses/CIDR blocks for this tenant'
},
ip_restriction_enabled: {
type: DataTypes.BOOLEAN,
defaultValue: false,
comment: 'Whether IP restrictions are enabled for this tenant'
},
ip_restriction_message: {
type: DataTypes.TEXT,
allowNull: true,
defaultValue: 'Access denied. Your IP address is not authorized to access this tenant.',
comment: 'Custom message shown when IP access is denied'
},
// Contact Information
admin_email: {
type: DataTypes.STRING,