Closed ggalan87 closed 4 years ago
Is user id the primary key here? We only support ID as primary Id at the moment but I'm open to improve that.
The program thinks userID is a foreign key now and tries look it up in the .R struct of the member
Yes it is primary key... The database and API is work in progress so I don't mind changing the spec either in the database or rename the field while generating the sqlboiler model. Thank you!
Perfect!
I got a wrong schema which I think it is caused due to bug while parsing the boiler struct. As you see below I have a field UserID which is not parsed correctly and eventually results to wrong generated field and empty type. Some other irrelevant part of the structs are omitted.
sqlboiler:
generated