how would you model the data for `user`, therapy `...
# help
o
how would you model the data for
user
, therapy
sessions
? would that be a
m2m
relationship? I'd like to maybe show a
history
timeline for user interactions. Is that a separate table with
user_id
session_id
?
n
Hello @omar! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
s
I'm guessing each session is related to one user, so this could just be a one to many.
o
yes a session belongs to only one use
how do I create this relationship in supabase?
the sessions will have a column for userId?
@silentworks