Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
id | bigserial | 19 | √ | nextval('action_comment_id_seq'::regclass) |
|
|
||||
user_id | int8 | 19 | null |
|
|
|||||
action | text | 2147483647 | null |
|
|
|||||
target_id | int8 | 19 | null |
|
|
|||||
updated_at | timestamptz | 35,6 | √ | CURRENT_TIMESTAMP |
|
|
||||
created_at | timestamptz | 35,6 | √ | CURRENT_TIMESTAMP |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
action_comment_pkey | Primary key | Asc | id |
action_comment_action_index | Performance | Asc | action |
action_comment_target_id_action_index | Performance | Asc/Asc | target_id + action |
action_comment_user_id_action_index | Performance | Asc/Asc | user_id + action |
action_comment_user_id_action_target_id_unique | Must be unique | Asc/Asc/Asc | user_id + action + target_id |
Check Constraints
Constraint Name | Constraint |
---|---|
action_comment_action_check | ((action = ANY (ARRAY['up_vote'::text, 'down_vote'::text]))) |