Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
|||
| user_id | VARCHAR | 36 | √ | null |
|
|
||
| badge_category_id | VARCHAR | 36 | null |
|
|
|||
| reference | VARCHAR | 36 | √ | null |
|
|
Reference can be primary key from community,learning activity,Resource id |
|
| centre_id | VARCHAR | 36 | √ | null |
|
|
||
| point | INT | 10 | null |
|
|
|||
| tenant_id | VARCHAR | 36 | null |
|
|
|||
| created_at | TIMESTAMP | 19 | √ | null |
|
|
||
| updated_at | TIMESTAMP | 19 | √ | null |
|
|
||
| deleted_at | TIMESTAMP | 19 | √ | null |
|
|
||
| old_data_id | INT | 10 | √ | null |
|
|
||
| event_year | TINYINT | 3 | √ | 0 |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| user_id | Performance | Asc | user_id |
