Add Order Detail

This commit is contained in:
aditya.siregar
2024-08-21 22:27:05 +07:00
parent 90ef6b910b
commit c4e0c6d2c8
4 changed files with 10 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ type Order struct {
Total float64 `gorm:"type:numeric;not null;column:total"`
Fee float64 `gorm:"type:numeric;not null;column:fee"`
SiteID *int64 `gorm:"type:numeric;not null;column:site_id"`
Site *Site `gorm:"foreignKey:SiteID;constraint:OnDelete:CASCADE;"`
CreatedAt time.Time `gorm:"autoCreateTime;column:created_at"`
UpdatedAt time.Time `gorm:"autoUpdateTime;column:updated_at"`
CreatedBy int64 `gorm:"type:int;column:created_by"`