fix: logic

This commit is contained in:
2025-03-18 01:36:42 +07:00
parent 4089f0b084
commit 6e5e676e84
5 changed files with 69 additions and 5 deletions

View File

@@ -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
}