Table discourse.public.post_actions Generated by
SchemaSpy
Legend: SourceForge.net
Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
< n > number of related tables
 
Column Type Size Nulls Auto Default Children Parents Comments
id serial 10  √  nextval('post_actions_id_seq'::regclass)
post_id int4 10
user_id int4 10
post_action_type_id int4 10
deleted_at timestamp 29,6  √  null
created_at timestamp 29,6
updated_at timestamp 29,6
deleted_by_id int4 10  √  null
related_post_id int4 10  √  null
staff_took_action bool 1 false
deferred_by_id int4 10  √  null
targets_topic bool 1 false
agreed_at timestamp 29,6  √  null
agreed_by_id int4 10  √  null
deferred_at timestamp 29,6  √  null
disagreed_at timestamp 29,6  √  null
disagreed_by_id int4 10  √  null

Table contained 9 rows at Fri Mar 27 12:26 PDT 2015

Indexes:
Column(s) Type Sort Constraint Name
id Primary key Asc post_actions_pkey
user_id + post_action_type_id + post_id + targets_topic Must be unique Asc/Asc/Asc/Asc idx_unique_actions
user_id + post_id + targets_topic Must be unique Asc/Asc/Asc idx_unique_flags
post_id Performance Asc index_post_actions_on_post_id