Column | Type | Options |
---|---|---|
nickname | string | null: false |
telephone | integer | null: false, unique: true |
string | null: false | |
password | string | null: false |
birth_year | integer | null: false |
birth_month | integer | null: false |
birth_day | integer | null: false |
icon_picture | string | |
profile | text | |
background_image | string | |
point | integer | |
uid | integer | |
provider | integer | |
family_name_kanji | string | null: false |
first_name_kanji | string | null: false |
family_name_kana | string | null: false |
first_name_kana | string | null: false |
zip_code | integer | |
prefecture | string | |
city | string | |
address1 | string | |
address2 | string |
- has_many :user_evalutions
- has_many :evalutions, through: :user_evalutions
- has_one :credit
- has_many :sns_credentials
Column | Type | Options |
---|---|---|
user_id | references | foreign_key |
evaluation_id | references | foreign_key |
- has_many :users
- has_many :evaluations
Column | Type | Options |
---|---|---|
value | string | null: false |
- has_many :user_evalutaions
- has_many :users, through: :user_evaluations
Column | Type | Options |
---|---|---|
uid | string | |
provider | string | |
user_id | references | foreign_key |
- belongs_to :user
Column | Type | Options |
---|---|---|
customer_id | references | null: false |
card_id | references | null: false |
user_id | references | foreign_key |
- belongs_to :user
Column | Type | Options |
---|---|---|
user_id | references | foreign_key |
text | text | null: false |
product_id | references | foreign_key |
- belongs_to :user
- belongs_to :product
Column | Type | Options |
---|---|---|
name | string | null: false |
info | text | null: false |
category_id | references | null: false, foreign_key |
brand_id | references | optional: true, foreign_key |
size | string | null: false |
status | string | null: false |
price | integer | null: false |
delivery_cost | string | null: false |
precfecture | integer | null: false |
delivery_date | string | null: false |
user_id | references | null: false, foreign_key |
- belongs_to :user
- belongs_to :category
- belongs_to :brand
- has_many: item_images
Column | Type | Options |
---|---|---|
item_id | references | foreign_key |
image | string |
- belongs_to :item
Column | Type | Options |
---|---|---|
name | string | null: false |
ancestry | string | index: true |
- has_many :items
- has_ancestry
Column | Type | Options |
---|---|---|
name | string | null: false |
- has_many :items