matsuda0513 / furima-41038

0 stars 0 forks source link

README

usersテーブル

|Column |Type |Options | |nickname |string |null: false | |email |string |null: false, unique: true | |encrypted_password |string |null: false | |first_name |string |null: false | |last_name |string |null: false | |first_name_kana |string |null: false | |last_name_kana |string |null: false | |birthday |date |null: false |

Association

itemsテーブル

|Column |Type |Options | |name |string |null: false | |description |text |null: false | |price |integer |null: false | |user |references |null: false, foreign_key: true | |category_id |integer |null: false | |condition_id |integer |null: false | |postage_payer_id |integer |null: false | |prefecture_id |integer |null: false | |ship_date_estimate_id |integer |null: false |

Association

ordersテーブル

|Column |Type |Options | |user |references|null: false, foreign_key: true | |item |references|null: false, foreign_key: true |

Association

addressesテーブル

|Column |Type |Options | |order |references|null: false, foreign_key: true | |postal_code |string |null: false | |prefecture_id |integer |null: false | |city |string |null: false | |address |string | | |building_name |string |null: false | |phone_number |string |null: false |

Association