Update annotations
This commit is contained in:
parent
227873df78
commit
be560d4eb6
|
@ -370,6 +370,9 @@ end
|
||||||
# latest_topic_id :integer
|
# latest_topic_id :integer
|
||||||
# position :integer
|
# position :integer
|
||||||
# parent_category_id :integer
|
# parent_category_id :integer
|
||||||
|
# posts_year :integer
|
||||||
|
# posts_month :integer
|
||||||
|
# posts_week :integer
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -67,3 +67,13 @@ SQL
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: category_users
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# category_id :integer not null
|
||||||
|
# user_id :integer not null
|
||||||
|
# notification_level :integer not null
|
||||||
|
#
|
||||||
|
|
|
@ -214,15 +214,15 @@ end
|
||||||
#
|
#
|
||||||
# Table name: groups
|
# Table name: groups
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# name :string(255) not null
|
# name :string(255) not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# automatic :boolean default(FALSE), not null
|
# automatic :boolean default(FALSE), not null
|
||||||
# user_count :integer default(0), not null
|
# user_count :integer default(0), not null
|
||||||
|
# alias_level :integer default(0)
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_groups_on_name (name) UNIQUE
|
# index_groups_on_name (name) UNIQUE
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -121,20 +121,20 @@ end
|
||||||
#
|
#
|
||||||
# Table name: invites
|
# Table name: invites
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# invite_key :string(32) not null
|
# invite_key :string(32) not null
|
||||||
# email :string(255) not null
|
# email :string(255) not null
|
||||||
# invited_by_id :integer not null
|
# invited_by_id :integer not null
|
||||||
# user_id :integer
|
# user_id :integer
|
||||||
# redeemed_at :datetime
|
# redeemed_at :datetime
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# deleted_at :datetime
|
# deleted_at :datetime
|
||||||
# deleted_by_id :integer
|
# deleted_by_id :integer
|
||||||
|
# invalidated_at :datetime
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_invites_on_email_and_invited_by_id (email,invited_by_id) UNIQUE
|
# index_invites_on_email_and_invited_by_id (email,invited_by_id) UNIQUE
|
||||||
# index_invites_on_invite_key (invite_key) UNIQUE
|
# index_invites_on_invite_key (invite_key) UNIQUE
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -488,7 +488,6 @@ end
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# reply_to_post_number :integer
|
# reply_to_post_number :integer
|
||||||
# version :integer default(1), not null
|
|
||||||
# reply_count :integer default(0), not null
|
# reply_count :integer default(0), not null
|
||||||
# quote_count :integer default(0), not null
|
# quote_count :integer default(0), not null
|
||||||
# deleted_at :datetime
|
# deleted_at :datetime
|
||||||
|
@ -517,6 +516,9 @@ end
|
||||||
# like_score :integer default(0), not null
|
# like_score :integer default(0), not null
|
||||||
# deleted_by_id :integer
|
# deleted_by_id :integer
|
||||||
# edit_reason :string(255)
|
# edit_reason :string(255)
|
||||||
|
# word_count :integer
|
||||||
|
# version :integer default(1), not null
|
||||||
|
# cook_method :integer default(1), not null
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -4,3 +4,21 @@ class PostRevision < ActiveRecord::Base
|
||||||
|
|
||||||
serialize :modifications, Hash
|
serialize :modifications, Hash
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: post_revisions
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# user_id :integer
|
||||||
|
# post_id :integer
|
||||||
|
# modifications :text
|
||||||
|
# number :integer
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_post_revisions_on_post_id (post_id)
|
||||||
|
# index_post_revisions_on_post_id_and_number (post_id,number)
|
||||||
|
#
|
||||||
|
|
|
@ -95,3 +95,43 @@ class TopTopic < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: top_topics
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# topic_id :integer
|
||||||
|
# yearly_posts_count :integer default(0), not null
|
||||||
|
# yearly_views_count :integer default(0), not null
|
||||||
|
# yearly_likes_count :integer default(0), not null
|
||||||
|
# monthly_posts_count :integer default(0), not null
|
||||||
|
# monthly_views_count :integer default(0), not null
|
||||||
|
# monthly_likes_count :integer default(0), not null
|
||||||
|
# weekly_posts_count :integer default(0), not null
|
||||||
|
# weekly_views_count :integer default(0), not null
|
||||||
|
# weekly_likes_count :integer default(0), not null
|
||||||
|
# daily_posts_count :integer default(0), not null
|
||||||
|
# daily_views_count :integer default(0), not null
|
||||||
|
# daily_likes_count :integer default(0), not null
|
||||||
|
# yearly_score :float
|
||||||
|
# monthly_score :float
|
||||||
|
# weekly_score :float
|
||||||
|
# daily_score :float
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_top_topics_on_daily_likes_count (daily_likes_count)
|
||||||
|
# index_top_topics_on_daily_posts_count (daily_posts_count)
|
||||||
|
# index_top_topics_on_daily_views_count (daily_views_count)
|
||||||
|
# index_top_topics_on_monthly_likes_count (monthly_likes_count)
|
||||||
|
# index_top_topics_on_monthly_posts_count (monthly_posts_count)
|
||||||
|
# index_top_topics_on_monthly_views_count (monthly_views_count)
|
||||||
|
# index_top_topics_on_topic_id (topic_id) UNIQUE
|
||||||
|
# index_top_topics_on_weekly_likes_count (weekly_likes_count)
|
||||||
|
# index_top_topics_on_weekly_posts_count (weekly_posts_count)
|
||||||
|
# index_top_topics_on_weekly_views_count (weekly_views_count)
|
||||||
|
# index_top_topics_on_yearly_likes_count (yearly_likes_count)
|
||||||
|
# index_top_topics_on_yearly_posts_count (yearly_posts_count)
|
||||||
|
# index_top_topics_on_yearly_views_count (yearly_views_count)
|
||||||
|
#
|
||||||
|
|
|
@ -759,6 +759,7 @@ end
|
||||||
# auto_close_started_at :datetime
|
# auto_close_started_at :datetime
|
||||||
# deleted_by_id :integer
|
# deleted_by_id :integer
|
||||||
# participant_count :integer default(1)
|
# participant_count :integer default(1)
|
||||||
|
# word_count :integer
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -85,3 +85,20 @@ class TopicEmbed < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: topic_embeds
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# topic_id :integer not null
|
||||||
|
# post_id :integer not null
|
||||||
|
# embed_url :string(255) not null
|
||||||
|
# content_sha1 :string(40) not null
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_topic_embeds_on_embed_url (embed_url) UNIQUE
|
||||||
|
#
|
||||||
|
|
|
@ -4,3 +4,21 @@ class TopicRevision < ActiveRecord::Base
|
||||||
|
|
||||||
serialize :modifications, Hash
|
serialize :modifications, Hash
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: topic_revisions
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# user_id :integer
|
||||||
|
# topic_id :integer
|
||||||
|
# modifications :text
|
||||||
|
# number :integer
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_topic_revisions_on_topic_id (topic_id)
|
||||||
|
# index_topic_revisions_on_topic_id_and_number (topic_id,number)
|
||||||
|
#
|
||||||
|
|
|
@ -276,9 +276,9 @@ end
|
||||||
# cleared_pinned_at :datetime
|
# cleared_pinned_at :datetime
|
||||||
# unstarred_at :datetime
|
# unstarred_at :datetime
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
|
# last_emailed_post_number :integer
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_forum_thread_users_on_forum_thread_id_and_user_id (topic_id,user_id) UNIQUE
|
# index_forum_thread_users_on_forum_thread_id_and_user_id (topic_id,user_id) UNIQUE
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -680,7 +680,7 @@ end
|
||||||
# flag_level :integer default(0), not null
|
# flag_level :integer default(0), not null
|
||||||
# ip_address :inet
|
# ip_address :inet
|
||||||
# new_topic_duration_minutes :integer
|
# new_topic_duration_minutes :integer
|
||||||
# external_links_in_new_tab :boolean default(FALSE), not null
|
# external_links_in_new_tab :boolean not null
|
||||||
# enable_quoting :boolean default(TRUE), not null
|
# enable_quoting :boolean default(TRUE), not null
|
||||||
# moderator :boolean default(FALSE)
|
# moderator :boolean default(FALSE)
|
||||||
# blocked :boolean default(FALSE)
|
# blocked :boolean default(FALSE)
|
||||||
|
@ -690,6 +690,7 @@ end
|
||||||
# uploaded_avatar_template :string(255)
|
# uploaded_avatar_template :string(255)
|
||||||
# uploaded_avatar_id :integer
|
# uploaded_avatar_id :integer
|
||||||
# email_always :boolean default(FALSE), not null
|
# email_always :boolean default(FALSE), not null
|
||||||
|
# mailing_list_mode :boolean default(FALSE), not null
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -26,9 +26,9 @@ end
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# visited_at :date not null
|
# visited_at :date not null
|
||||||
|
# posts_read :integer default(0)
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_user_visits_on_user_id_and_visited_at (user_id,visited_at) UNIQUE
|
# index_user_visits_on_user_id_and_visited_at (user_id,visited_at) UNIQUE
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue