code-corps / code-corps-api

Elixir/Phoenix API for Code Corps.
https://www.codecorps.org
MIT License
234 stars 86 forks source link

Add Conversation and ConversationPart models and schemas #1286

Closed begedin closed 6 years ago

begedin commented 6 years ago

Problem

These two really go together, so we likely need to add them together.

We should not deal with changesets as part of this issue, as we really aren't sure yet what they might look like.

The idea is that a project can start a message with a user. This creates a Message record, with the following fields

A Conversation record is then also created

From the other side, a user can also message a project. This, again, creates a Message record, with the following fields:

Again, a Conversation is also created

In both cases, any side can then post further messages to the same conversation. This creates ConversationPart records

Conversation fields

ConversationPart fields

Subtasks

References

begedin commented 6 years ago

Stressing the fact that this issue should not deal with changesets, it should be done in 1-2 hours.

joshsmith commented 6 years ago

What needs clarification here?

begedin commented 6 years ago

@joshsmith Sorry, that was supposed to be "needs code review"