We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0ba3e9 commit c144292Copy full SHA for c144292
1 file changed
models/services.go
@@ -22,7 +22,7 @@ type Service struct {
22
ServiceListingID uint `json:"service_listing_id" gorm:"index;not null"`
23
Title string `json:"title" gorm:"not null"`
24
Price float64 `json:"price" gorm:"not null"`
25
- PriceUnit string `json:"price_unit" gorm:"not null"` // e.g., "per hour", "per cut", etc.
+ PriceUnit string `json:"price_unit" gorm:"not null"` // e.g., "per hour", "per cut"
26
CreatedAt time.Time `json:"created_at"`
27
UpdatedAt time.Time `json:"updated_at"`
28
ServiceListing ServiceListing `json:"-" gorm:"foreignKey:ServiceListingID"`
0 commit comments