Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
---|---|---|---|---|---|---|---|---|---|---|---|
id | INT UNSIGNED | 10 | √ | null |
|
|
|||||
idUser | MEDIUMINT UNSIGNED | 8 | null |
|
|
||||||
idAvatar | INT UNSIGNED | 10 | null |
|
|
||||||
selected | BIT | 1 | 0 |
|
|
||||||
expires_at | TIMESTAMP | 19 | √ | null |
|
|
If null the avatar is permanent |
||||
create_time | TIMESTAMP | 19 | current_timestamp() |
|
|
||||||
update_time | TIMESTAMP | 19 | current_timestamp() |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PRIMARY | Primary key | Asc | id |
friendCnst | Performance | Asc | idAvatar |
idUser | Must be unique | Asc/Asc | idUser + idAvatar |