Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
|||
| location_business_line_id | VARCHAR | 36 | null |
|
|
|||
| rule_key | VARCHAR | 100 | null |
|
|
Unique rule identifier (e.g., CLIENT_DOCUMENT_RESTRICTION) |
||
| is_enabled | BIT | 1 | 1 |
|
|
Whether this rule is enabled for the location |
||
| parameters | JSON | 1073741824 | √ | null |
|
|
Rule-specific parameters as JSON |
|
| notes | TEXT | 65535 | √ | null |
|
|
Admin notes about this configuration |
|
| created_at | TIMESTAMP | 19 | CURRENT_TIMESTAMP |
|
|
|||
| updated_at | TIMESTAMP | 19 | CURRENT_TIMESTAMP |
|
|
|||
| created_by | VARCHAR | 36 | √ | null |
|
|
||
| updated_by | VARCHAR | 36 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_rule_config_enabled | Performance | Asc | is_enabled |
| idx_rule_config_location | Performance | Asc | location_business_line_id |
| idx_rule_config_rule | Performance | Asc | rule_key |
| uk_rule_config_location_rule | Must be unique | Asc/Asc | location_business_line_id + rule_key |