Closed kitchendcardiff closed 2 years ago
Hey @kitchendcardiff, thank you for your time on the issue.
Ent currently doesn't support FK with the destination isn't a PK.
Can you migrate your database to create the column programme_uploads.user_id
that reference to users.id
?
Unfortunately Its a legacy db I can't change the structure on, but I appreciate the reply and confirmation.
ent generates an error trying to parse the generated schema from the ddl below. The provided error is: "mismatch field type between edge field "username" and id of type "User" (string != int32)"
I think it might be missing the foreign key reference in the generation?