Table discourse.public.topic_users 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
user_id int4 10
topic_id int4 10
posted bool 1 false
last_read_post_number int4 10  √  null
highest_seen_post_number int4 10  √  null
last_visited_at timestamp 29,6  √  null
first_visited_at timestamp 29,6  √  null
notification_level int4 10 1
notifications_changed_at timestamp 29,6  √  null
notifications_reason_id int4 10  √  null
total_msecs_viewed int4 10 0
cleared_pinned_at timestamp 29,6  √  null
id serial 10  √  nextval('topic_users_id_seq'::regclass)
last_emailed_post_number int4 10  √  null
liked bool 1  √  false
bookmarked bool 1  √  false

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

Indexes:
Column(s) Type Sort Constraint Name
id Primary key Asc topic_users_pkey
topic_id + user_id Must be unique Asc/Asc index_topic_users_on_topic_id_and_user_id
user_id + topic_id Must be unique Asc/Asc index_topic_users_on_user_id_and_topic_id