DEV: annotate models
Some comments were out of data, updated
This commit is contained in:
parent
f5d1aff8dd
commit
3314aa9f88
|
@ -116,6 +116,7 @@ end
|
|||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# reason :string
|
||||
# user_accuracy_bonus :float default(0.0), not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
|
|
|
@ -60,12 +60,14 @@ end
|
|||
#
|
||||
# Table name: topic_groups
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# group_id :integer not null
|
||||
# topic_id :integer not null
|
||||
# last_read_post_number :integer default(0), not null
|
||||
# id :bigint not null, primary key
|
||||
# group_id :integer not null
|
||||
# topic_id :integer not null
|
||||
# last_read_post_number :integer default(0), not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
# 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
|
||||
# group_locked_trust_level :integer
|
||||
# manual_locked_trust_level :integer
|
||||
# secure_identifier :string
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
|
@ -1570,6 +1571,7 @@ end
|
|||
# idx_users_moderator (id) WHERE moderator
|
||||
# index_users_on_last_posted_at (last_posted_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_username (username) UNIQUE
|
||||
# index_users_on_username_lower (username_lower) UNIQUE
|
||||
|
|
|
@ -21,18 +21,26 @@ end
|
|||
# Table name: user_security_keys
|
||||
#
|
||||
# id :bigint not null, primary key
|
||||
# user_id :integer not null
|
||||
# factor_type :integer not null
|
||||
# credential_id :string not null, UNIQUE
|
||||
# user_id :bigint not null
|
||||
# credential_id :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
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# name :string not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_user_security_keys_on_credential_id (credential_id) (UNIQUE)
|
||||
# index_user_security_keys_on_factor_type (factor_type)
|
||||
# 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_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…
Reference in New Issue