mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: annotate models
Some comments were out of data, updated
This commit is contained in:
parent
f5d1aff8dd
commit
3314aa9f88
4 changed files with 25 additions and 12 deletions
|
@ -116,6 +116,7 @@ end
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# reason :string
|
# reason :string
|
||||||
|
# user_accuracy_bonus :float default(0.0), not null
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -60,12 +60,14 @@ end
|
||||||
#
|
#
|
||||||
# Table name: topic_groups
|
# Table name: topic_groups
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :bigint not null, primary key
|
||||||
# group_id :integer not null
|
# group_id :integer not null
|
||||||
# topic_id :integer not null
|
# topic_id :integer not null
|
||||||
# last_read_post_number :integer default(0), not null
|
# last_read_post_number :integer default(0), not null
|
||||||
|
# created_at :datetime not null
|
||||||
|
# updated_at :datetime not null
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_topic_allowed_groups_on_group_id_and_topic_id (group_id,topic_id) UNIQUE
|
# index_topic_groups_on_group_id_and_topic_id (group_id,topic_id) UNIQUE
|
||||||
#
|
#
|
||||||
|
|
|
@ -1563,6 +1563,7 @@ end
|
||||||
# silenced_till :datetime
|
# silenced_till :datetime
|
||||||
# group_locked_trust_level :integer
|
# group_locked_trust_level :integer
|
||||||
# manual_locked_trust_level :integer
|
# manual_locked_trust_level :integer
|
||||||
|
# secure_identifier :string
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
@ -1570,6 +1571,7 @@ end
|
||||||
# idx_users_moderator (id) WHERE moderator
|
# idx_users_moderator (id) WHERE moderator
|
||||||
# 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_secure_identifier (secure_identifier) UNIQUE
|
||||||
# index_users_on_uploaded_avatar_id (uploaded_avatar_id)
|
# index_users_on_uploaded_avatar_id (uploaded_avatar_id)
|
||||||
# index_users_on_username (username) UNIQUE
|
# index_users_on_username (username) UNIQUE
|
||||||
# index_users_on_username_lower (username_lower) UNIQUE
|
# index_users_on_username_lower (username_lower) UNIQUE
|
||||||
|
|
|
@ -21,18 +21,26 @@ end
|
||||||
# Table name: user_security_keys
|
# Table name: user_security_keys
|
||||||
#
|
#
|
||||||
# id :bigint not null, primary key
|
# id :bigint not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :bigint not null
|
||||||
# factor_type :integer not null
|
# credential_id :string not null
|
||||||
# credential_id :string not null, UNIQUE
|
|
||||||
# public_key :string not null
|
# public_key :string not null
|
||||||
# enabled :boolean default(FALSE), not null
|
# factor_type :integer default(0), not null
|
||||||
|
# enabled :boolean default(TRUE), not null
|
||||||
|
# name :string not null
|
||||||
# last_used :datetime
|
# last_used :datetime
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# name :string not null
|
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_user_security_keys_on_credential_id (credential_id) (UNIQUE)
|
# index_user_security_keys_on_credential_id (credential_id) UNIQUE
|
||||||
# index_user_security_keys_on_factor_type (factor_type)
|
# index_user_security_keys_on_factor_type (factor_type)
|
||||||
|
# index_user_security_keys_on_factor_type_and_enabled (factor_type,enabled)
|
||||||
|
# index_user_security_keys_on_last_used (last_used)
|
||||||
|
# index_user_security_keys_on_public_key (public_key)
|
||||||
|
# index_user_security_keys_on_user_id (user_id)
|
||||||
|
#
|
||||||
|
# Foreign Keys
|
||||||
|
#
|
||||||
|
# fk_rails_... (user_id => users.id)
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue