Can't create relation between two tables
I'm trying to create a relation between a
Fixed; for anyone wondering, instead of using
ù
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 schemaFixed; for anyone wondering, instead of using
references(() => clients.id) very shallowly you have to create proper relations like such:ù