Team-uMigrate / umigrate

Source code for the uMigrate project
13 stars 2 forks source link

API: Add room membership join date #396

Closed deandrebaker closed 3 years ago

deandrebaker commented 3 years ago

When a user joins a room, we want to keep track of the date and time they join the room. We can modify the many to many field 'members' on the Room class to include the join date. We can leverage the 'through' parameter and make our own model to relate users and rooms. Check out https://stackoverflow.com/questions/4443190/djangos-manytomany-relationship-with-additional-fields for an example.