fix: logic
This commit is contained in:
14
tests/testdata/src/relations_check/negative.go
vendored
14
tests/testdata/src/relations_check/negative.go
vendored
@@ -61,3 +61,17 @@ type ShoppingCart struct {
|
||||
Id uint `gorm:"primaryKey"`
|
||||
SerializedItems string
|
||||
}
|
||||
|
||||
// Has one
|
||||
|
||||
type Hotel struct {
|
||||
Id uint `gorm:"primaryKey"`
|
||||
Office
|
||||
}
|
||||
|
||||
type Office struct {
|
||||
Id uint `gorm:"primaryKey"`
|
||||
Name string
|
||||
Address string
|
||||
HotelId uint
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user