mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 03:09:43 +00:00
annotate models
This commit is contained in:
parent
510bac4b27
commit
454636abf1
@ -1,3 +1,27 @@
|
||||
class CasUserInfo < ActiveRecord::Base
|
||||
belongs_to :user
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: cas_user_infos
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# user_id :integer not null
|
||||
# cas_user_id :string(255) not null
|
||||
# username :string(255) not null
|
||||
# first_name :string(255)
|
||||
# last_name :string(255)
|
||||
# email :string(255)
|
||||
# gender :string(255)
|
||||
# name :string(255)
|
||||
# link :string(255)
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_cas_user_infos_on_cas_user_id (cas_user_id) UNIQUE
|
||||
# index_cas_user_infos_on_user_id (user_id) UNIQUE
|
||||
#
|
||||
|
||||
|
@ -43,9 +43,11 @@ end
|
||||
# topic_id :integer not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# rank :integer default(0), not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# cat_featured_threads (category_id,topic_id) UNIQUE
|
||||
# cat_featured_threads (category_id,topic_id) UNIQUE
|
||||
# index_category_featured_topics_on_category_id_and_rank (category_id,rank)
|
||||
#
|
||||
|
||||
|
@ -23,10 +23,12 @@ end
|
||||
# user_id :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# reply_key :string(32)
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_email_logs_on_created_at (created_at)
|
||||
# index_email_logs_on_reply_key (reply_key)
|
||||
# index_email_logs_on_user_id_and_created_at (user_id,created_at)
|
||||
#
|
||||
|
||||
|
@ -57,3 +57,21 @@ class OptimizedImage < ActiveRecord::Base
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: optimized_images
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# sha :string(255) not null
|
||||
# ext :string(255) not null
|
||||
# width :integer not null
|
||||
# height :integer not null
|
||||
# upload_id :integer not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_optimized_images_on_upload_id (upload_id)
|
||||
# index_optimized_images_on_upload_id_and_width_and_height (upload_id,width,height) UNIQUE
|
||||
#
|
||||
|
||||
|
@ -410,6 +410,7 @@ end
|
||||
# reply_to_user_id :integer
|
||||
# percent_rank :float default(1.0)
|
||||
# notify_user_count :integer default(0), not null
|
||||
# like_score :integer default(0), not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
|
@ -342,6 +342,7 @@ end
|
||||
# deleted_by :integer
|
||||
# message :text
|
||||
# related_post_id :integer
|
||||
# staff_took_action :boolean default(FALSE), not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
|
@ -2,3 +2,17 @@ class PostUpload < ActiveRecord::Base
|
||||
belongs_to :post
|
||||
belongs_to :upload
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: post_uploads
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# post_id :integer not null
|
||||
# upload_id :integer not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# idx_unique_post_uploads (post_id,upload_id) UNIQUE
|
||||
#
|
||||
|
||||
|
@ -105,9 +105,11 @@ end
|
||||
# url :string(255) not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# sha :string(255)
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_uploads_on_forum_thread_id (topic_id)
|
||||
# index_uploads_on_user_id (user_id)
|
||||
# index_uploads_on_sha (sha) UNIQUE
|
||||
# index_uploads_on_user_id (user_id)
|
||||
#
|
||||
|
||||
|
@ -637,6 +637,7 @@ end
|
||||
# likes_given :integer default(0), not null
|
||||
# likes_received :integer default(0), not null
|
||||
# topic_reply_count :integer default(0), not null
|
||||
# blocked :boolean default(FALSE)
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user