Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | BIGINT UNSIGNED | 20 | √ | null |
|
|
クーポン履歴テーブルID |
||||
| user_id | BIGINT | 19 | √ | null |
|
|
|||||
| coupon_id | BIGINT UNSIGNED | 20 | null |
|
|
クーポンID |
|||||
| got_at | DATETIME | 19 | null |
|
|
取得日時 |
|||||
| used_at | DATETIME | 19 | √ | null |
|
|
利用日時 |
||||
| expiration_date | DATE | 10 | null |
|
|
使用期限 |
|||||
| created_by | VARCHAR | 255 | null |
|
|
作成者 |
|||||
| created_at | DATETIME | 19 | null |
|
|
作成日時 |
|||||
| updated_by | VARCHAR | 255 | null |
|
|
更新者 |
|||||
| updated_at | DATETIME | 19 | null |
|
|
更新日時 |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| nk_coupon_histories_coupon_id_index | Performance | Asc | coupon_id |
| nk_coupon_histories_expiration_date_index | Performance | Asc | expiration_date |
| nk_coupon_histories_got_at_index | Performance | Asc | got_at |
| nk_coupon_histories_used_at_index | Performance | Asc | used_at |
| nk_coupon_histories_user_id_index | Performance | Asc | user_id |