Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | INT UNSIGNED | 10 | √ | null |
|
|
|||||
| uuid | CHAR | 36 | √ | null |
|
|
|||||
| account_id | INT UNSIGNED | 10 | null |
|
|
||||||
| contact_id | INT UNSIGNED | 10 | null |
|
|
||||||
| in_debt | VARCHAR | 255 | no |
|
|
||||||
| status | VARCHAR | 255 | inprogress |
|
|
||||||
| amount | INT | 10 | null |
|
|
||||||
| currency_id | INT UNSIGNED | 10 | √ | null |
|
|
|||||
| reason | LONGTEXT | 2147483647 | √ | null |
|
|
|||||
| created_at | TIMESTAMP | 19 | √ | null |
|
|
|||||
| updated_at | TIMESTAMP | 19 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| debts_account_id_uuid_index | Performance | Asc/Asc | account_id + uuid |
| debts_contact_id_foreign | Performance | Asc | contact_id |
| debts_currency_id_foreign | Performance | Asc | currency_id |



