Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
id | bigserial | 19 | √ | nextval('punish_record_id_seq'::regclass) |
|
|
||||
user_id | int8 | 19 | √ | null |
|
|
||||
state | text | 2147483647 | null |
|
|
|||||
archived | bool | 1 | √ | false |
|
|
||||
expired_at | timestamptz | 35,6 | CURRENT_TIMESTAMP |
|
|
|||||
created_at | timestamptz | 35,6 | √ | CURRENT_TIMESTAMP |
|
|
||||
updated_at | timestamptz | 35,6 | √ | CURRENT_TIMESTAMP |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
punish_record_pkey | Primary key | Asc | id |
punish_record_user_id_state_archived_index | Performance | Asc/Asc/Asc | user_id + state + archived |
Check Constraints
Constraint Name | Constraint |
---|---|
punish_record_state_check | ((state = 'banned'::text)) |