Prisma query multiple tables

So, I have 3 tables that need to be queried. Their schema are very much alike, underlined fields are basically shared between them.
I need to 'join' them, I guess, and do a pagination based on timestamp.
How would I go about doing this?
Screenshot_2023-06-14_at_17.03.24.png
Was this page helpful?