Foreign key is zero (instead of null) causing Error 1452 in MySQL for go-gorm

后端 未结 0 1189
我寻月下人不归
我寻月下人不归 2021-01-24 18:32

so I have 2 tables in a zero-to-many relation. (Each File can have at most 1 User).

type User         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题