boolean-uk / team-dev-server

3 stars 11 forks source link

Update the schema to have Conversation and Messages. [1] #168

Closed SeanRichhh closed 2 years ago

SeanRichhh commented 2 years ago

User Story

User has many conversations Conversation has many ConversationMembers User has many ConversationMembers Conversation has many messages.

Tasks

A Conversation has an id, name, a user id, and timestamps. ConversationMember is the join table - this has a conversation id and a user id A message has an id, a user ID, a conversation ID, content, timestamps

Check List

Before PR

After PR Merge

dearshrewdwit commented 2 years ago

Proposed schema LGTM