Can't create relation between two tables
I'm trying to create a relation between a
clients
table and a sheets
tables where a client can have multiple sheets linked to their ID, but I keep getting complaints about incompatible foreign keys due to my bad schema
Fixed; for anyone wondering, instead of using references(() => clients.id)
very shallowly you have to create proper relations like such:
ù0 Replies