LoginSignup
0
0

More than 3 years have passed since last update.

簡易設計の方法

Posted at

手順

  • 必要な機能の洗い出し
  • テーブル設計

必要な機能の洗い出し

  • サインアップ/サインイン機能
ログイン機能
  • プロフィール編集機能
編集
  • マッッチング機能
いいねをお互いがした場合にマッチング
  • チャット機能
メッセージが送れる
画像が送れる?
 - 画像の送り方などは?

テーブル設計

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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0