Closed troian closed 4 years ago
I think you should require user id in schema or is this not required in your case?
So add not nullable in your schema to the user id field
I add e.g. organizationid/userid to every table to simplify authorization logic. It's built in query since user can not update something outside their scope. But I think it's required for that that user ID and organization I'd are required in table
Hm, I think it everywhere is set to NOT NULL
Sorry, me stupid. Fixed
Why does sqlboiler generate a null.String for it. I think it is not set to NOT NULL
Ah ok! Nice! Maybe we should support it, but I rather like that required in database. But some people do not have the option to require that in an older database so I'll add in the future probably!
UserIDFromContext
seems to be required with 2 different returns types:Is issue coming from our schema? or it something generated inappropriately?