Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
||||||
| amount | DECIMAL | 10,2 | null |
|
|
||||||
| created_at | DATETIME | 26 | null |
|
|
||||||
| created_by | VARCHAR | 255 | √ | null |
|
|
|||||
| notes | TEXT | 65535 | √ | null |
|
|
|||||
| payment_date | DATE | 10 | null |
|
|
||||||
| payment_method | enum('BANK_TRANSFER', 'CASH', 'CHECK', 'CREDIT_CARD', 'OTHER') | 13 | null |
|
|
||||||
| reference_number | VARCHAR | 100 | √ | null |
|
|
|||||
| updated_at | DATETIME | 26 | null |
|
|
||||||
| updated_by | VARCHAR | 255 | √ | null |
|
|
|||||
| invoice_id | VARCHAR | 36 | null |
|
|
||||||
| payment_method_id | VARCHAR | 36 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| FK2sx9o9ker4twrnr4cadrt0v73 | Performance | Asc | payment_method_id |
| FKrbqec6be74wab8iifh8g3i50i | Performance | Asc | invoice_id |