Replies: 1 comment
-
|
Bumping this. Does gorm seriously not support composite FK for one to many? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, in my project, there is a many-to-many relationship between
UserandProject. To manage this, I am using an intermediate table calledUserProjectto associateUserandProject. Here is the structure ofUserProject:Now, users can create tasks in a given project (task belongs to user and project). Here is the design of my Task table:
However, during migration, it keeps saying that I have not set the appropriate foreign keys. What should I do?
Beta Was this translation helpful? Give feedback.
All reactions