
1. User
1.1. item_id
1.1.1. integer
1.2. cordinate_id
1.2.1. integer
1.3. name
1.3.1. string
1.4. email
1.4.1. string
1.5. password_digest
1.5.1. string
1.6. admin
1.6.1. boolean
1.6.2. 0 or 1
1.7. activated
1.7.1. boolean
1.7.1.1. true
1.8. Gravatarは無料のサービスで、プロフィール写真をアップロードして、指定したメールアドレスと関連付けることができます。
1.8.1. pictureはいらない
1.9. picture
1.9.1. string
1.10. Railsチュートリアル風に他のUserを作成して、許可がおりたら他人のクローゼットが見れるようにするか検討中?
1.11. friend
1.11.1. boolean
2. Cordinate
2.1. user_id
2.1.1. integer
2.2. item_id
2.2.1. integer
2.3. comment_id
2.3.1. integer
2.4. si_shoes
2.4.1. integer
2.4.1.1. item_id
2.4.1.2. super_itemがshoes
2.4.2. 1
2.5. si_bottoms
2.5.1. integer
2.5.1.1. item_id
2.5.2. 2
2.6. si_tops
2.6.1. integer
2.6.2. 3
2.7. si_outer
2.7.1. integer
2.7.2. 5
2.8. season
2.8.1. integer
2.8.1.1. 春
2.8.1.1.1. 0
2.8.1.2. 夏
2.8.1.2.1. 1
2.8.1.3. 秋
2.8.1.3.1. 2
2.8.1.4. 冬
2.8.1.4.1. 3
2.8.2. enum
2.9. tpo
2.9.1. integer
2.9.1.1. デート
2.9.1.1.1. 0
2.9.1.2. リラックス
2.9.1.2.1. 1
2.9.1.3. スポーツ
2.9.1.3.1. 2
2.9.1.4. おでかけ
2.9.1.4.1. 3
2.9.1.5. 仕事
2.9.1.5.1. 4
2.9.1.6. どのタイミングで着るべき服なのか
2.9.2. enum
2.10. rating
2.10.1. ☆1
2.10.1.1. 0
2.10.2. ☆2
2.10.2.1. 1
2.10.3. ☆3
2.10.3.1. 2
2.10.4. ☆4
2.10.4.1. 3
2.10.5. ☆5
2.10.5.1. 4
2.10.6. Userが評価した☆ランクの情報を補足する
2.10.7. float
2.11. memo
2.11.1. text
2.12. picture
2.12.1. string
3. Like_cordinate
3.1. user_id
3.1.1. integer
3.1.1.1. Likeしたother_userが入る
3.2. cordinate_id
3.2.1. integer
3.2.1.1. 自分のコーディネートID
3.3. メソッドの定義
3.3.1. active_likecordinates
3.3.1.1. foreign_key
3.3.1.1.1. user_id
3.3.1.1.2. どのコーディネートにいいねしているか がすぐにわかるように定義
4. Comment
4.1. user_id
4.1.1. integer
4.2. cordinate_id
4.2.1. integer
4.3. comment
4.3.1. string
5. Role
5.1. user_id
5.1.1. id
5.2. admin
5.2.1. boolean
5.3. Userモデル内にbooleanで役割を設定する使用にしたため、不要。
6. Notification
6.1. sender_id
6.1.1. integer
6.2. receiver_id
6.2.1. integer
6.3. cordinate_id
6.3.1. integer
6.4. comment_id
6.4.1. integer
6.5. likecordinate_id
6.5.1. integer
6.6. action
6.6.1. string
6.6.2. どんな、アクションが行われたのか
6.7. checked
6.7.1. boolean
7. Item
7.1. user_id
7.1.1. integer
7.2. cordinate_id
7.2.1. integer
7.3. super_item
7.3.1. integer
7.3.1.1. アウター
7.3.1.1.1. 0
7.3.1.2. トップス
7.3.1.2.1. 1
7.3.1.3. ボトムス
7.3.1.3.1. 2
7.3.1.4. シューズ
7.3.1.4.1. 3
7.3.2. enum
7.4. season
7.4.1. integer
7.4.1.1. 春
7.4.1.1.1. 0
7.4.1.2. 夏
7.4.1.2.1. 1
7.4.1.3. 秋
7.4.1.3.1. 2
7.4.1.4. 冬
7.4.1.4.1. 3
7.4.2. enum
7.5. tpo
7.5.1. integer
7.5.1.1. デート
7.5.1.1.1. 0
7.5.1.2. リラックス
7.5.1.2.1. 1
7.5.1.3. スポーツ
7.5.1.3.1. 2
7.5.1.4. おでかけ
7.5.1.4.1. 3
7.5.1.5. 仕事
7.5.1.5.1. 4
7.5.1.6. どのタイミングで着るべき服なのか
7.5.1.7. original
7.5.1.7.1. 5
7.5.1.7.2. 好きに加えられるようにしたい
7.5.1.7.3. ユーザーが独自で実装
7.5.1.7.4. Userごとに違うネーミングになり、同じカテゴリーで検索できないので削除。
7.5.2. enum
7.6. color
7.6.1. integer
7.6.1.1. black
7.6.1.1.1. #000000
7.6.1.2. white
7.6.1.2.1. #ffffff
7.6.1.3. gray
7.6.1.3.1. #d3d3d3
7.6.1.4. red
7.6.1.4.1. #ff0000
7.6.1.5. blue
7.6.1.5.1. #0000ff
7.6.1.6. navy
7.6.1.6.1. #000080
7.6.1.7. light-blue
7.6.1.7.1. light-blue
7.6.1.8. yellow
7.6.1.8.1. #ffff00
7.6.1.9. green
7.6.1.9.1. #008000
7.6.1.10. orenge
7.6.1.10.1. #ffa500
7.6.1.11. olive
7.6.1.11.1. #808000
7.6.1.12. neon
7.6.1.12.1. #00ff00
7.6.1.13. border
7.6.1.13.1. 12
7.6.1.14. patternned
7.6.1.14.1. 13
7.6.1.15. denim
7.6.1.15.1. lightskyblue
7.6.1.16. others
7.6.1.16.1. 15
7.6.2. enum
7.7. rating
7.7.1. ☆1
7.7.1.1. 0
7.7.2. ☆2
7.7.2.1. 1
7.7.3. ☆3
7.7.3.1. 2
7.7.4. ☆4
7.7.4.1. 3
7.7.5. ☆5
7.7.5.1. 4
7.7.6. Userが評価した☆ランクの情報を補足する
7.7.7. float
7.7.8. enum
7.8. content
7.8.1. string
7.8.1.1. Tシャツ
7.8.1.1.1. 0
7.8.1.2. シャツ
7.8.1.2.1. 1
7.8.1.3. ポロシャツ
7.8.1.3.1. 2
7.8.1.4. パーカー
7.8.1.4.1. 3
7.8.1.5. スウェット
7.8.1.5.1. 4
7.8.1.6. セーター
7.8.1.6.1. 5
7.8.1.7. パンツ
7.8.1.7.1. 6
7.8.1.8. デニムパンツ
7.8.1.8.1. 7
7.8.1.9. ジャケット
7.8.1.9.1. 8
7.8.1.10. コート
7.8.1.10.1. 9
7.8.1.11. スニーカー
7.8.1.11.1. 10
7.8.1.12. ローファー
7.8.1.12.1. 11
7.8.1.13. レザーシューズ
7.8.1.13.1. 12
7.8.1.14. ブーツ
7.8.1.14.1. 13
7.8.1.15. ビジネス
7.8.1.15.1. 14
7.8.1.16. その他
7.8.1.16.1. 15
7.8.1.17. 名前を番号で振り分ける?
7.8.2. enum
7.9. memo
7.9.1. text
7.9.1.1. テキスト形式でItemに関してなんでも書けるメモ欄
7.10. picture
7.10.1. string
8. 服のカテゴリーの大枠を決め showアクションで表示される時の1つのカテゴリーに1つの服を選ぶ基準とする。
9. Block
9.1. blocker_id
9.1.1. integer
9.1.2. ブロックしているUser
9.2. blocked_id
9.2.1. integer
9.2.2. ブロックされているUser
9.2.2.1. あなたをブロックしているUser
10. Relationship
10.1. followed_id
10.1.1. あなたが フォローされているUser
10.1.1.1. あなたをフォローしているUser
10.1.2. user_idが入る
10.1.3. integer
10.1.4. followers
10.1.5. passive_relationship
10.1.5.1. foreign_key
10.1.5.1.1. followed_id
10.1.5.1.2. followedは自分
10.1.6. followed
10.1.6.1. through: :passive_relationship
10.1.6.1.1. source: :follower
10.2. follower_id
10.2.1. あなたが フォローしているUser
10.2.2. user_idが入る
10.2.3. avtive_relationship
10.2.3.1. foreign_key
10.2.3.1.1. follower_id
10.2.3.1.2. followerは自分
10.2.4. following
10.2.4.1. through: :avtive_relationship
10.2.4.1.1. source: :followed