mirror of
https://github.com/discourse/discourse.git
synced 2025-04-26 17:54:31 +08:00
Update annotations.
This commit is contained in:
parent
da7a44064b
commit
e8fc8f0bb6
@ -550,12 +550,17 @@ end
|
|||||||
# auto_close_based_on_last_post :boolean default(FALSE)
|
# auto_close_based_on_last_post :boolean default(FALSE)
|
||||||
# topic_template :text
|
# topic_template :text
|
||||||
# suppress_from_homepage :boolean default(FALSE)
|
# suppress_from_homepage :boolean default(FALSE)
|
||||||
# all_topics_wiki :boolean default(FALSE)
|
|
||||||
# contains_messages :boolean
|
# contains_messages :boolean
|
||||||
# sort_order :string
|
# sort_order :string
|
||||||
# sort_ascending :boolean
|
# sort_ascending :boolean
|
||||||
# uploaded_logo_id :integer
|
# uploaded_logo_id :integer
|
||||||
# uploaded_background_id :integer
|
# uploaded_background_id :integer
|
||||||
|
# topic_featured_link_allowed :boolean default(TRUE)
|
||||||
|
# all_topics_wiki :boolean default(FALSE), not null
|
||||||
|
# show_subcategory_list :boolean default(FALSE)
|
||||||
|
# num_featured_topics :integer default(3)
|
||||||
|
# default_view :string(50)
|
||||||
|
# subcategory_list_style :string(50) default("rows_with_featured_topics")
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
@ -4,3 +4,18 @@ class CustomEmoji < ActiveRecord::Base
|
|||||||
validates :name, presence: true, uniqueness: true
|
validates :name, presence: true, uniqueness: true
|
||||||
validates :upload_id, presence: true
|
validates :upload_id, presence: true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: custom_emojis
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# name :string not null
|
||||||
|
# upload_id :integer not null
|
||||||
|
# created_at :datetime not null
|
||||||
|
# updated_at :datetime not null
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_custom_emojis_on_name (name) UNIQUE
|
||||||
|
#
|
||||||
|
@ -1263,6 +1263,7 @@ end
|
|||||||
# pinned_until :datetime
|
# pinned_until :datetime
|
||||||
# fancy_title :string(400)
|
# fancy_title :string(400)
|
||||||
# highest_staff_post_number :integer default(0), not null
|
# highest_staff_post_number :integer default(0), not null
|
||||||
|
# featured_link :string
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
@ -64,6 +64,7 @@ end
|
|||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_topic_views_on_topic_id_and_viewed_at (topic_id,viewed_at)
|
# index_topic_views_on_topic_id_and_viewed_at (topic_id,viewed_at)
|
||||||
|
# index_topic_views_on_user_id_and_viewed_at (user_id,viewed_at)
|
||||||
# index_topic_views_on_viewed_at_and_topic_id (viewed_at,topic_id)
|
# index_topic_views_on_viewed_at_and_topic_id (viewed_at,topic_id)
|
||||||
# ip_address_topic_id_topic_views (ip_address,topic_id) UNIQUE
|
# ip_address_topic_id_topic_views (ip_address,topic_id) UNIQUE
|
||||||
# user_id_topic_id_topic_views (user_id,topic_id) UNIQUE
|
# user_id_topic_id_topic_views (user_id,topic_id) UNIQUE
|
||||||
|
@ -1092,7 +1092,7 @@ end
|
|||||||
# username :string(60) not null
|
# username :string(60) not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# name :string(255)
|
# name :string
|
||||||
# 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(513) not null
|
# email :string(513) not null
|
||||||
@ -1100,7 +1100,6 @@ end
|
|||||||
# salt :string(32)
|
# salt :string(32)
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# username_lower :string(60) not null
|
# username_lower :string(60) not null
|
||||||
# auth_token :string(32)
|
|
||||||
# last_seen_at :datetime
|
# last_seen_at :datetime
|
||||||
# admin :boolean default(FALSE), not null
|
# admin :boolean default(FALSE), not null
|
||||||
# last_emailed_at :datetime
|
# last_emailed_at :datetime
|
||||||
@ -1117,7 +1116,7 @@ end
|
|||||||
# ip_address :inet
|
# ip_address :inet
|
||||||
# moderator :boolean default(FALSE)
|
# moderator :boolean default(FALSE)
|
||||||
# blocked :boolean default(FALSE)
|
# blocked :boolean default(FALSE)
|
||||||
# title :string(255)
|
# title :string
|
||||||
# uploaded_avatar_id :integer
|
# uploaded_avatar_id :integer
|
||||||
# locale :string(10)
|
# locale :string(10)
|
||||||
# primary_group_id :integer
|
# primary_group_id :integer
|
||||||
@ -1125,13 +1124,11 @@ end
|
|||||||
# trust_level_locked :boolean default(FALSE), not null
|
# trust_level_locked :boolean default(FALSE), not null
|
||||||
# staged :boolean default(FALSE), not null
|
# staged :boolean default(FALSE), not null
|
||||||
# first_seen_at :datetime
|
# first_seen_at :datetime
|
||||||
# auth_token_updated_at :datetime
|
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# idx_users_admin (id)
|
# idx_users_admin (id)
|
||||||
# idx_users_moderator (id)
|
# idx_users_moderator (id)
|
||||||
# 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)
|
||||||
# index_users_on_uploaded_avatar_id (uploaded_avatar_id)
|
# index_users_on_uploaded_avatar_id (uploaded_avatar_id)
|
||||||
|
@ -177,12 +177,18 @@ end
|
|||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# auth_token :string not null
|
# auth_token :string not null
|
||||||
# prev_auth_token :string
|
# prev_auth_token :string not null
|
||||||
# user_agent :string
|
# user_agent :string
|
||||||
# auth_token_seen :boolean default(FALSE), not null
|
# auth_token_seen :boolean default(FALSE), not null
|
||||||
# legacy :boolean default(FALSE), not null
|
# legacy :boolean default(FALSE), not null
|
||||||
# client_ip :inet
|
# client_ip :inet
|
||||||
# rotated_at :datetime
|
# rotated_at :datetime not null
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
|
# seen_at :datetime
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_user_auth_tokens_on_auth_token (auth_token) UNIQUE
|
||||||
|
# index_user_auth_tokens_on_prev_auth_token (prev_auth_token) UNIQUE
|
||||||
#
|
#
|
||||||
|
@ -1,2 +1,17 @@
|
|||||||
class UserAuthTokenLog < ActiveRecord::Base
|
class UserAuthTokenLog < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: user_auth_token_logs
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# action :string not null
|
||||||
|
# user_auth_token_id :integer
|
||||||
|
# user_id :integer
|
||||||
|
# client_ip :inet
|
||||||
|
# user_agent :string
|
||||||
|
# auth_token :string
|
||||||
|
# created_at :datetime
|
||||||
|
# path :string
|
||||||
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user