Skip to content
Snippets Groups Projects
Unverified Commit 443e378b authored by meskio's avatar meskio :tent:
Browse files

Don't omit order purchase on the transaction

parent d336dbf3
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ type Transaction struct {
Purchase []Purchase `json:"purchase,omitempty"`
Topup *Topup `json:"topup,omitempty"`
OrderPurchase []OrderPurchase `json:"order_purchase,omitempty" gorm:"foreignKey:TransactionID;constraint:OnDelete:CASCADE"`
OrderPurchase []OrderPurchase `json:"order_purchase" gorm:"foreignKey:TransactionID;constraint:OnDelete:CASCADE"`
Order *Order `json:"order,omitempty" gorm:"constraint:OnDelete:CASCADE"`
OrderID *uint `json:"-"`
Refund *Order `json:"refund,omitempty" gorm:"foreignKey:TransactionID"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment