forgeplus/app/models/memo.rb

47 lines
1.4 KiB
Ruby

# == Schema Information
#
# Table name: memos
#
# id :integer not null, primary key
# parent_id :integer
# subject :string(255) not null
# content :text(4294967295) not null
# author_id :integer not null
# replies_count :integer default("0")
# last_reply_id :integer
# lock :boolean default("0")
# sticky :boolean default("0")
# created_at :datetime not null
# updated_at :datetime not null
# viewed_count :integer default("0")
# root_id :integer
# reward :integer
# language :string(255)
# hidden :boolean default("1")
# repertoire_name :string(255)
# is_md :boolean default("1")
# published_at :datetime
# homepage_show :boolean default("0")
# praises_count :integer default("0")
# is_fine :boolean default("0")
# last_reply_on :datetime
# tag_id :integer default("1")
# is_original :boolean
# reprint_link :string(255)
# forum_section_id :integer
# destroy_status :integer
#
# Indexes
#
# index_memos_on_author_id (author_id)
# index_memos_on_destroy_status (destroy_status)
# index_memos_on_parent_id (parent_id)
# index_memos_on_root_id (root_id)
#
class Memo < ApplicationRecord
end