Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
|---|---|---|---|---|---|---|---|---|---|---|
| id | BIGINT | 19 | √ | null |
|
|
||||
| client_id | BIGINT | 19 | null |
|
|
|||||
| document_type_id | INT | 10 | null |
|
|
|||||
| document_key | VARCHAR | 50 | null |
|
|
|||||
| status | INT | 10 | 300 |
|
|
|||||
| active | INT | 10 | √ | NULL |
|
|
||||
| description | VARCHAR | 500 | √ | NULL |
|
|
||||
| createdby_id | BIGINT | 19 | √ | NULL |
|
|
||||
| lastmodifiedby_id | BIGINT | 19 | √ | NULL |
|
|
||||
| created_date | DATETIME | 19 | √ | NULL |
|
|
||||
| lastmodified_date | DATETIME | 19 | √ | NULL |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| FK_m_client_document_m_client | Performance | Asc | client_id |
| FK_m_client_document_m_code_value | Performance | Asc | document_type_id |
| unique_active_client_identifier | Must be unique | Asc/Asc/Asc | client_id + document_type_id + active |
| unique_identifier_key | Must be unique | Asc/Asc | document_type_id + document_key |