Self Order
This commit is contained in:
@@ -53,6 +53,7 @@ type Order struct {
|
||||
RemainingAmount float64 `gorm:"type:decimal(10,2);default:0.00" json:"remaining_amount"`
|
||||
PaymentStatus PaymentStatus `gorm:"default:'pending';size:50" json:"payment_status"`
|
||||
RefundAmount float64 `gorm:"type:decimal(10,2);default:0.00" json:"refund_amount"`
|
||||
Source string `gorm:"default:'staff';size:50" json:"source"`
|
||||
IsVoid bool `gorm:"default:false" json:"is_void"`
|
||||
IsRefund bool `gorm:"default:false" json:"is_refund"`
|
||||
VoidReason *string `gorm:"size:255" json:"void_reason,omitempty"`
|
||||
|
||||
@@ -19,6 +19,7 @@ type Table struct {
|
||||
PositionX float64 `gorm:"type:decimal(10,2);default:0.00" json:"position_x"`
|
||||
PositionY float64 `gorm:"type:decimal(10,2);default:0.00" json:"position_y"`
|
||||
Capacity int `gorm:"default:4" json:"capacity"`
|
||||
Token string `gorm:"uniqueIndex;size:100" json:"token"`
|
||||
IsActive bool `gorm:"default:true" json:"is_active"`
|
||||
Metadata Metadata `gorm:"type:jsonb;default:'{}'" json:"metadata"`
|
||||
CreatedAt time.Time `gorm:"autoCreateTime" json:"created_at"`
|
||||
|
||||
Reference in New Issue
Block a user