Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | INT | 10 | √ | null |
|
|
|||||
| raffle_id | INT | 10 | null |
|
|
||||||
| user_id | INT | 10 | null |
|
|
||||||
| notified_at | DATETIME | 19 | √ | null |
|
|
|||||
| purchase_deadline | DATETIME | 23 | √ | null |
|
|
|||||
| created_at | DATETIME | 19 | CURRENT_TIMESTAMP |
|
|
||||||
| deleted_at | DATETIME | 19 | √ | null |
|
|
|||||
| updated_at | DATETIME | 19 | CURRENT_TIMESTAMP |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_raffle_winners_raffle_id | Performance | Asc | raffle_id |
| idx_raffle_winners_user_id | Performance | Asc | user_id |
| uniq_raffle_entries_user | Must be unique | Asc/Asc | raffle_id + user_id |

