DEV: annotate models
(also looks like renaming of bigint(8) -> bigint in annotate which seems fine)
This commit is contained in:
parent
3cb0d27d38
commit
3dc4ab905c
|
@ -742,11 +742,13 @@ end
|
|||
# navigate_to_first_post_after_read :boolean default(FALSE), not null
|
||||
# search_priority :integer default(0)
|
||||
# allow_global_tags :boolean default(FALSE), not null
|
||||
# reviewable_by_group_id :integer
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_categories_on_email_in (email_in) UNIQUE
|
||||
# index_categories_on_search_priority (search_priority)
|
||||
# index_categories_on_topic_count (topic_count)
|
||||
# unique_index_categories_on_name (COALESCE(parent_category_id, '-1'::integer), name) UNIQUE
|
||||
# index_categories_on_email_in (email_in) UNIQUE
|
||||
# index_categories_on_reviewable_by_group_id (reviewable_by_group_id)
|
||||
# index_categories_on_search_priority (search_priority)
|
||||
# index_categories_on_topic_count (topic_count)
|
||||
# unique_index_categories_on_name (COALESCE(parent_category_id, '-1'::integer), name) UNIQUE
|
||||
#
|
||||
|
|
|
@ -66,9 +66,9 @@ end
|
|||
#
|
||||
# Table name: category_tag_stats
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# category_id :bigint(8) not null
|
||||
# tag_id :bigint(8) not null
|
||||
# id :bigint not null, primary key
|
||||
# category_id :bigint not null
|
||||
# tag_id :bigint not null
|
||||
# topic_count :integer default(0), not null
|
||||
#
|
||||
# Indexes
|
||||
|
|
|
@ -7,7 +7,7 @@ end
|
|||
#
|
||||
# Table name: group_requests
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# group_id :integer
|
||||
# user_id :integer
|
||||
# reason :text
|
||||
|
|
|
@ -7,7 +7,7 @@ end
|
|||
#
|
||||
# Table name: ignored_users
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# user_id :integer not null
|
||||
# ignored_user_id :integer not null
|
||||
# created_at :datetime not null
|
||||
|
|
|
@ -25,8 +25,8 @@ end
|
|||
#
|
||||
# Table name: javascript_caches
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# theme_field_id :bigint(8) not null
|
||||
# id :bigint not null, primary key
|
||||
# theme_field_id :bigint not null
|
||||
# digest :string
|
||||
# content :text not null
|
||||
# created_at :datetime not null
|
||||
|
|
|
@ -21,7 +21,7 @@ end
|
|||
#
|
||||
# Table name: post_reply_keys
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# user_id :integer not null
|
||||
# post_id :integer not null
|
||||
# reply_key :uuid not null
|
||||
|
|
|
@ -6,7 +6,7 @@ end
|
|||
#
|
||||
# Table name: push_subscriptions
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# user_id :integer not null
|
||||
# data :string not null
|
||||
# created_at :datetime not null
|
||||
|
|
|
@ -476,7 +476,7 @@ end
|
|||
#
|
||||
# Table name: reviewables
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# type :string not null
|
||||
# status :integer default(0), not null
|
||||
# created_by_id :integer not null
|
||||
|
@ -498,6 +498,7 @@ end
|
|||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_reviewables_on_reviewable_by_group_id (reviewable_by_group_id)
|
||||
# index_reviewables_on_status_and_created_at (status,created_at)
|
||||
# index_reviewables_on_status_and_score (status,score)
|
||||
# index_reviewables_on_status_and_type (status,type)
|
||||
|
|
|
@ -288,7 +288,7 @@ end
|
|||
#
|
||||
# Table name: reviewables
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# type :string not null
|
||||
# status :integer default(0), not null
|
||||
# created_by_id :integer not null
|
||||
|
@ -310,6 +310,7 @@ end
|
|||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_reviewables_on_reviewable_by_group_id (reviewable_by_group_id)
|
||||
# index_reviewables_on_status_and_created_at (status,created_at)
|
||||
# index_reviewables_on_status_and_score (status,score)
|
||||
# index_reviewables_on_status_and_type (status,type)
|
||||
|
|
|
@ -16,7 +16,7 @@ end
|
|||
#
|
||||
# Table name: reviewable_histories
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# reviewable_id :integer not null
|
||||
# reviewable_history_type :integer not null
|
||||
# status :integer not null
|
||||
|
|
|
@ -139,7 +139,7 @@ end
|
|||
#
|
||||
# Table name: reviewables
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# type :string not null
|
||||
# status :integer default(0), not null
|
||||
# created_by_id :integer not null
|
||||
|
@ -161,6 +161,7 @@ end
|
|||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_reviewables_on_reviewable_by_group_id (reviewable_by_group_id)
|
||||
# index_reviewables_on_status_and_created_at (status,created_at)
|
||||
# index_reviewables_on_status_and_score (status,score)
|
||||
# index_reviewables_on_status_and_type (status,type)
|
||||
|
|
|
@ -74,7 +74,7 @@ end
|
|||
#
|
||||
# Table name: reviewable_scores
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# reviewable_id :integer not null
|
||||
# user_id :integer not null
|
||||
# reviewable_score_type :integer not null
|
||||
|
|
|
@ -95,7 +95,7 @@ end
|
|||
#
|
||||
# Table name: reviewables
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# type :string not null
|
||||
# status :integer default(0), not null
|
||||
# created_by_id :integer not null
|
||||
|
@ -117,6 +117,7 @@ end
|
|||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_reviewables_on_reviewable_by_group_id (reviewable_by_group_id)
|
||||
# index_reviewables_on_status_and_created_at (status,created_at)
|
||||
# index_reviewables_on_status_and_score (status,score)
|
||||
# index_reviewables_on_status_and_type (status,type)
|
||||
|
|
|
@ -11,7 +11,7 @@ end
|
|||
# category_id :integer not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
|
|
|
@ -70,7 +70,7 @@ end
|
|||
#
|
||||
# Table name: skipped_email_logs
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# email_type :string not null
|
||||
# to_address :string not null
|
||||
# user_id :integer
|
||||
|
|
|
@ -12,9 +12,9 @@ end
|
|||
#
|
||||
# Table name: tag_group_permissions
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# tag_group_id :bigint(8) not null
|
||||
# group_id :bigint(8) not null
|
||||
# id :bigint not null, primary key
|
||||
# tag_group_id :bigint not null
|
||||
# group_id :bigint not null
|
||||
# permission_type :integer default(1), not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
|
|
|
@ -58,7 +58,7 @@ end
|
|||
#
|
||||
# Table name: theme_settings
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# name :string(255) not null
|
||||
# data_type :integer not null
|
||||
# value :text
|
||||
|
|
|
@ -12,7 +12,7 @@ end
|
|||
#
|
||||
# Table name: theme_translation_overrides
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# theme_id :integer not null
|
||||
# locale :string not null
|
||||
# translation_key :string not null
|
||||
|
|
|
@ -12,7 +12,7 @@ end
|
|||
#
|
||||
# Table name: user_associated_accounts
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# provider_name :string not null
|
||||
# provider_uid :string not null
|
||||
# user_id :integer
|
||||
|
|
|
@ -154,20 +154,16 @@ end
|
|||
# website :string
|
||||
# bio_raw :text
|
||||
# bio_cooked :text
|
||||
# profile_background :string(255)
|
||||
# dismissed_banner_key :integer
|
||||
# bio_cooked_version :integer
|
||||
# badge_granted_title :boolean default(FALSE)
|
||||
# card_background :string(255)
|
||||
# views :integer default(0), not null
|
||||
# profile_background_upload_id :integer
|
||||
# card_background_upload_id :integer
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_user_profiles_on_bio_cooked_version (bio_cooked_version)
|
||||
# index_user_profiles_on_card_background (card_background)
|
||||
# index_user_profiles_on_card_background_upload_id (card_background_upload_id)
|
||||
# index_user_profiles_on_profile_background (profile_background)
|
||||
# index_user_profiles_on_profile_background_upload_id (profile_background_upload_id)
|
||||
# index_user_profiles_on_bio_cooked_version (bio_cooked_version)
|
||||
# index_user_profiles_on_card_background (card_background)
|
||||
# index_user_profiles_on_profile_background (profile_background)
|
||||
#
|
||||
|
|
|
@ -26,7 +26,7 @@ end
|
|||
#
|
||||
# Table name: user_second_factors
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# user_id :integer not null
|
||||
# method :integer not null
|
||||
# data :string not null
|
||||
|
|
|
@ -7,7 +7,7 @@ end
|
|||
#
|
||||
# Table name: user_uploads
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# upload_id :integer not null
|
||||
# user_id :integer not null
|
||||
# created_at :datetime not null
|
||||
|
|
|
@ -79,7 +79,7 @@ end
|
|||
#
|
||||
# Table name: web_crawler_requests
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# id :bigint not null, primary key
|
||||
# date :date not null
|
||||
# user_agent :string not null
|
||||
# count :integer default(0), not null
|
||||
|
|
Loading…
Reference in New Issue