Can't infer relationship one-to-one
I'm trying to follow the relationship docs to set a relationship between a user and a role, but I'm getting the error
Error: There is not enough information to infer relation "users.role"
although I'm sure I'm following the example on this page: https://orm.drizzle.team/docs/rqb#one-to-one
Can anyone help me find the issue?
Code:
Drizzle ORM - Query
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
0 Replies