feat: many2many relations check
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package references_check
|
||||
|
||||
// TODO: add test with annotations on back-references
|
||||
|
||||
type WorkArea struct {
|
||||
Id uint `gorm:"primaryKey"`
|
||||
Workshop Workshop `gorm:"foreignKey:WorkshopId;references:Id;"`
|
||||
|
||||
Reference in New Issue
Block a user