Skip to content
Back

how can i make a relationship between a column in a table and $id in auth.users?

  • 0
  • Databases
  • Auth
  • Web
dei8bit
13 Feb, 2026, 11:50

i want to relate the $id from users auth table in appwrite with other column in my table user_profile. because is the same user...

how can i have exactly the same id for both tables?

TL;DR
Create a foreign key relationship between the 'id' column in the 'users' table of Auth and the corresponding column in your 'user_profile' table. This will ensure that the ids are the same for both tables.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more