column | type | option |
---|---|---|
nickname | string | |
string | null:false, unique:true | |
password | string | null:false |
password-confirmation | string | |
image | string | |
headerImage | string | |
introduction | text | |
magazine_id | integer | unique:true |
card-information | interger |
has_many :notes, through: :paid_members
has_many :comments
has_many :paid_members
column | type | option |
---|---|---|
user_id | integer | null:false、unique:true |
title | text | |
body | text | |
eyecatch-image | string | |
image | string | |
url | string | |
fee | interger | |
category | text |
has_many :users, through :paid_members
has_many :messages
has_many :paid_members
column | type | option |
---|---|---|
user_id | integer | null:false, foreign_key |
note_id | integer | null:false, foreign_key |
magazine_id | integer | unique:true |
belongs_to :user
belongs_to :group
column | type | option |
---|---|---|
title | text | |
explanation | text | |
fee | integer | |
user_id | integer | null:false, foreign_key |
note_id | integer | null:false, foreign_key |
belongs_to :user
belongs_to :note
column | type | option |
---|---|---|
category_id | integer | null:false, foreign_key |
note_id | integer | null:false, foreign_key |
belongs_to :group