I wonder how to model something like this:
A user can create any amount of events. Each event belongs to one user.
What I have done so far: Created a new tables called 'users' and 'events'. When a user signs up, a new entry in 'users' is created with its id from the built-in auth table. This column is called 'userId'. However, when trying to set relationship to the 'events' table, the relationship is created via the 'user' table rowId. I cannot specify a key unfortunately.
How did you solve this?
Later, I want to do something in an admin dashboard: Get all events from user xyz
Recommended threads
- Appwrite + Cloudflare domain
So i have a domain with cloudflare, however i'm only given a new NS to change the domain to. im not 100% sure how i would do this and dthe docs aren't really ta...
- Cannot specify project id
Hey There. Îve just install appwrite 1.8 on selfhosted ( for next migration from 1.6.1 ). When i create a new project i can’t modify project ID. Does it com...
- Site SSR TanStack
Hey, I’m deploying a React + TanStack app on Appwrite Hosting. Can Appwrite Sites/SSR use Bun for runtime/build, or is it Node-only? I’m using Bun locally and w...