mirror of
https://github.com/discourse/discourse.git
synced 2025-03-13 01:55:32 +08:00
update annotations
This commit is contained in:
parent
7468f85818
commit
c1ecd6f4ce
@ -361,6 +361,7 @@ end
|
|||||||
# show_posts :boolean default(FALSE), not null
|
# show_posts :boolean default(FALSE), not null
|
||||||
# system :boolean default(FALSE), not null
|
# system :boolean default(FALSE), not null
|
||||||
# image :string(255)
|
# image :string(255)
|
||||||
|
# long_description :text
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
@ -455,6 +455,8 @@ end
|
|||||||
# allow_badges :boolean default(TRUE), not null
|
# allow_badges :boolean default(TRUE), not null
|
||||||
# name_lower :string(50) not null
|
# name_lower :string(50) not null
|
||||||
# auto_close_based_on_last_post :boolean default(FALSE)
|
# auto_close_based_on_last_post :boolean default(FALSE)
|
||||||
|
# topic_template :text
|
||||||
|
# suppress_from_homepage :boolean default(FALSE)
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
@ -17,3 +17,17 @@ class DigestUnsubscribeKey < ActiveRecord::Base
|
|||||||
self.key = SecureRandom.hex(32)
|
self.key = SecureRandom.hex(32)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: digest_unsubscribe_keys
|
||||||
|
#
|
||||||
|
# key :string(64) not null, primary key
|
||||||
|
# user_id :integer not null
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_digest_unsubscribe_keys_on_created_at (created_at)
|
||||||
|
#
|
||||||
|
@ -73,3 +73,25 @@ class DirectoryItem < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: directory_items
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# period_type :integer not null
|
||||||
|
# user_id :integer not null
|
||||||
|
# likes_received :integer not null
|
||||||
|
# likes_given :integer not null
|
||||||
|
# topics_entered :integer not null
|
||||||
|
# topic_count :integer not null
|
||||||
|
# post_count :integer not null
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
# days_visited :integer default(0), not null
|
||||||
|
# posts_read :integer default(0), not null
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_directory_items_on_period_type (period_type)
|
||||||
|
#
|
||||||
|
@ -64,6 +64,7 @@ end
|
|||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# sequence :integer default(0), not null
|
# sequence :integer default(0), not null
|
||||||
|
# revisions :integer default(1), not null
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
@ -22,3 +22,14 @@ class EmbeddableHost < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: embeddable_hosts
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# host :string(255) not null
|
||||||
|
# category_id :integer not null
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
#
|
||||||
|
@ -372,6 +372,8 @@ end
|
|||||||
# visible :boolean default(TRUE), not null
|
# visible :boolean default(TRUE), not null
|
||||||
# automatic_membership_email_domains :text
|
# automatic_membership_email_domains :text
|
||||||
# automatic_membership_retroactive :boolean default(FALSE)
|
# automatic_membership_retroactive :boolean default(FALSE)
|
||||||
|
# primary_group :boolean default(FALSE), not null
|
||||||
|
# title :string(255)
|
||||||
# grant_trust_level :integer
|
# grant_trust_level :integer
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
|
@ -10,8 +10,8 @@ end
|
|||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# group_id :integer not null
|
# group_id :integer not null
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
@ -2,3 +2,19 @@ class MutedUser < ActiveRecord::Base
|
|||||||
belongs_to :user
|
belongs_to :user
|
||||||
belongs_to :muted_user, class_name: 'User'
|
belongs_to :muted_user, class_name: 'User'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: muted_users
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# user_id :integer not null
|
||||||
|
# muted_user_id :integer not null
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_muted_users_on_muted_user_id_and_user_id (muted_user_id,user_id) UNIQUE
|
||||||
|
# index_muted_users_on_user_id_and_muted_user_id (user_id,muted_user_id) UNIQUE
|
||||||
|
#
|
||||||
|
@ -164,6 +164,8 @@ end
|
|||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_notifications_on_post_action_id (post_action_id)
|
# idx_notifications_speedup_unread_count (user_id,notification_type)
|
||||||
# index_notifications_on_user_id_and_created_at (user_id,created_at)
|
# index_notifications_on_post_action_id (post_action_id)
|
||||||
|
# index_notifications_on_user_id_and_created_at (user_id,created_at)
|
||||||
|
# index_notifications_on_user_id_and_topic_id_and_post_number (user_id,topic_id,post_number)
|
||||||
#
|
#
|
||||||
|
@ -644,6 +644,7 @@ end
|
|||||||
# via_email :boolean default(FALSE), not null
|
# via_email :boolean default(FALSE), not null
|
||||||
# raw_email :text
|
# raw_email :text
|
||||||
# public_version :integer default(1), not null
|
# public_version :integer default(1), not null
|
||||||
|
# action_code :string(255)
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
@ -551,7 +551,8 @@ end
|
|||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# idx_unique_actions (user_id,post_action_type_id,post_id,targets_topic) UNIQUE
|
# idx_unique_actions (user_id,post_action_type_id,post_id,targets_topic) UNIQUE
|
||||||
# idx_unique_flags (user_id,post_id,targets_topic) UNIQUE
|
# idx_unique_flags (user_id,post_id,targets_topic) UNIQUE
|
||||||
# index_post_actions_on_post_id (post_id)
|
# index_post_actions_on_post_id (post_id)
|
||||||
|
# index_post_actions_on_user_id_and_post_action_type_id (user_id,post_action_type_id)
|
||||||
#
|
#
|
||||||
|
@ -15,5 +15,6 @@ end
|
|||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
# index_post_custom_fields_on_name_and_value (name)
|
||||||
# index_post_custom_fields_on_post_id_and_name (post_id,name)
|
# index_post_custom_fields_on_post_id_and_name (post_id,name)
|
||||||
#
|
#
|
||||||
|
@ -1,3 +1,20 @@
|
|||||||
class PostStat < ActiveRecord::Base
|
class PostStat < ActiveRecord::Base
|
||||||
belongs_to :post
|
belongs_to :post
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: post_stats
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# post_id :integer
|
||||||
|
# drafts_saved :integer
|
||||||
|
# typing_duration_msecs :integer
|
||||||
|
# composer_open_duration_msecs :integer
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_post_stats_on_post_id (post_id)
|
||||||
|
#
|
||||||
|
@ -108,3 +108,27 @@ class QueuedPost < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: queued_posts
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# queue :string(255) not null
|
||||||
|
# state :integer not null
|
||||||
|
# user_id :integer not null
|
||||||
|
# raw :text not null
|
||||||
|
# post_options :json not null
|
||||||
|
# topic_id :integer
|
||||||
|
# approved_by_id :integer
|
||||||
|
# approved_at :datetime
|
||||||
|
# rejected_by_id :integer
|
||||||
|
# rejected_at :datetime
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# by_queue_status (queue,state,created_at)
|
||||||
|
# by_queue_status_topic (topic_id,queue,state,created_at)
|
||||||
|
#
|
||||||
|
@ -192,6 +192,8 @@ end
|
|||||||
# body_tag :text
|
# body_tag :text
|
||||||
# top :text
|
# top :text
|
||||||
# mobile_top :text
|
# mobile_top :text
|
||||||
|
# embedded_css :text
|
||||||
|
# embedded_css_baked :text
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
@ -28,3 +28,19 @@ class StylesheetCache < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: stylesheet_cache
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# target :string(255) not null
|
||||||
|
# digest :string(255) not null
|
||||||
|
# content :text not null
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_stylesheet_cache_on_target_and_digest (target,digest) UNIQUE
|
||||||
|
#
|
||||||
|
@ -1043,11 +1043,15 @@ end
|
|||||||
# pinned_globally :boolean default(FALSE), not null
|
# pinned_globally :boolean default(FALSE), not null
|
||||||
# auto_close_based_on_last_post :boolean default(FALSE)
|
# auto_close_based_on_last_post :boolean default(FALSE)
|
||||||
# auto_close_hours :float
|
# auto_close_hours :float
|
||||||
|
# pinned_until :datetime
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# idx_topics_front_page (deleted_at,visible,archetype,category_id,id)
|
# idx_topics_front_page (deleted_at,visible,archetype,category_id,id)
|
||||||
# idx_topics_user_id_deleted_at (user_id)
|
# idx_topics_user_id_deleted_at (user_id)
|
||||||
# index_topics_on_bumped_at (bumped_at)
|
# index_topics_on_bumped_at (bumped_at)
|
||||||
# index_topics_on_id_and_deleted_at (id,deleted_at)
|
# index_topics_on_created_at_and_visible (created_at,visible)
|
||||||
|
# index_topics_on_id_and_deleted_at (id,deleted_at)
|
||||||
|
# index_topics_on_pinned_at (pinned_at)
|
||||||
|
# index_topics_on_pinned_globally (pinned_globally)
|
||||||
#
|
#
|
||||||
|
@ -169,7 +169,7 @@ end
|
|||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# topic_id :integer not null
|
# topic_id :integer not null
|
||||||
# post_id :integer not null
|
# post_id :integer not null
|
||||||
# embed_url :string(255) not null
|
# embed_url :string(1000) not null
|
||||||
# content_sha1 :string(40)
|
# content_sha1 :string(40)
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
@ -231,7 +231,8 @@ end
|
|||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_topic_links_on_post_id (post_id)
|
# index_topic_links_on_link_post_id_and_reflection (link_post_id,reflection)
|
||||||
# index_topic_links_on_topic_id (topic_id)
|
# index_topic_links_on_post_id (post_id)
|
||||||
# unique_post_links (topic_id,post_id,url) UNIQUE
|
# index_topic_links_on_topic_id (topic_id)
|
||||||
|
# unique_post_links (topic_id,post_id,url) UNIQUE
|
||||||
#
|
#
|
||||||
|
@ -1038,7 +1038,7 @@ end
|
|||||||
# name :string(255)
|
# name :string(255)
|
||||||
# seen_notification_id :integer default(0), not null
|
# seen_notification_id :integer default(0), not null
|
||||||
# last_posted_at :datetime
|
# last_posted_at :datetime
|
||||||
# email :string(256) not null
|
# email :string(513) not null
|
||||||
# password_hash :string(64)
|
# password_hash :string(64)
|
||||||
# salt :string(32)
|
# salt :string(32)
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
@ -1083,6 +1083,8 @@ end
|
|||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
# idx_users_admin (id)
|
||||||
|
# idx_users_moderator (id)
|
||||||
# index_users_on_auth_token (auth_token)
|
# index_users_on_auth_token (auth_token)
|
||||||
# index_users_on_last_posted_at (last_posted_at)
|
# index_users_on_last_posted_at (last_posted_at)
|
||||||
# index_users_on_last_seen_at (last_seen_at)
|
# index_users_on_last_seen_at (last_seen_at)
|
||||||
|
@ -363,10 +363,13 @@ end
|
|||||||
# acting_user_id :integer
|
# acting_user_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
# queued_post_id :integer
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# idx_unique_rows (action_type,user_id,target_topic_id,target_post_id,acting_user_id) UNIQUE
|
# idx_unique_rows (action_type,user_id,target_topic_id,target_post_id,acting_user_id) UNIQUE
|
||||||
|
# idx_user_actions_speed_up_user_all (user_id,created_at,action_type)
|
||||||
# index_user_actions_on_acting_user_id (acting_user_id)
|
# index_user_actions_on_acting_user_id (acting_user_id)
|
||||||
|
# index_user_actions_on_target_post_id (target_post_id)
|
||||||
# index_user_actions_on_user_id_and_action_type (user_id,action_type)
|
# index_user_actions_on_user_id_and_action_type (user_id,action_type)
|
||||||
#
|
#
|
||||||
|
@ -21,4 +21,5 @@ end
|
|||||||
# description :string(255) not null
|
# description :string(255) not null
|
||||||
# required :boolean default(TRUE), not null
|
# required :boolean default(TRUE), not null
|
||||||
# show_on_profile :boolean default(FALSE), not null
|
# show_on_profile :boolean default(FALSE), not null
|
||||||
|
# position :integer default(0)
|
||||||
#
|
#
|
||||||
|
@ -1,2 +1,13 @@
|
|||||||
class UserFieldOption < ActiveRecord::Base
|
class UserFieldOption < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: user_field_options
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# user_field_id :integer not null
|
||||||
|
# value :string(255) not null
|
||||||
|
# created_at :datetime
|
||||||
|
# updated_at :datetime
|
||||||
|
#
|
||||||
|
@ -143,6 +143,7 @@ end
|
|||||||
# topic_id :integer
|
# topic_id :integer
|
||||||
# admin_only :boolean default(FALSE)
|
# admin_only :boolean default(FALSE)
|
||||||
# post_id :integer
|
# post_id :integer
|
||||||
|
# custom_type :string(255)
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
@ -40,4 +40,5 @@ end
|
|||||||
# 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
|
||||||
|
# index_user_visits_on_visited_at_and_mobile (visited_at,mobile)
|
||||||
#
|
#
|
||||||
|
@ -19,6 +19,7 @@ if(Rails.env.development?)
|
|||||||
'exclude_tests' => "true",
|
'exclude_tests' => "true",
|
||||||
'exclude_fixtures' => "true",
|
'exclude_fixtures' => "true",
|
||||||
'exclude_factories' => "true",
|
'exclude_factories' => "true",
|
||||||
|
'exclude_serializers' => "true",
|
||||||
'ignore_model_sub_dir' => "false",
|
'ignore_model_sub_dir' => "false",
|
||||||
'skip_on_db_migrate' => "true",
|
'skip_on_db_migrate' => "true",
|
||||||
'format_bare' => "true",
|
'format_bare' => "true",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user