手順
- 必要な機能の洗い出し
- テーブル設計
必要な機能の洗い出し
- サインアップ/サインイン機能
ログイン機能
- プロフィール編集機能
編集
- マッッチング機能
いいねをお互いがした場合にマッチング
- チャット機能
メッセージが送れる
画像が送れる?
- 画像の送り方などは?
テーブル設計
ER図的な?
@startuml
class ユーザー << User >>{
ID <<id>>
名前 <<name>>
email <<email>>
}
class メッセージ <<Message>>{
ID <<id>>
メッセージ <<message>>
user_id <<user_id>>
chat_room_id <<chat_room_id>>
}
class チェットルーム <<ChatRoom>>{
ID <<id>>
}
class チェットルームユーザー <<ChatRoomUsers>>{
ID <<id>>
chat_room_id <<chat_room_id>>
user_id <<user_id>>
}
class リレーション <<Relation>>{
ID <<id>>
to_user_id <<to_user_id>>
from_user_id <<from_user_id>>
status <<status>>
}
ユーザー "1" -- "*" メッセージ
チェットルーム "1" -- "*" チェットルームユーザー
ユーザー "1" -- "*" チェットルームユーザー
チェットルーム "1" -- "*" メッセージ
ユーザー "1" -- "*" リレーション
@enduml