Set CASCADE deletion for ItemBought from Payment after deletion
This commit is contained in:
parent
dbe140ecaf
commit
4244e397f3
|
@ -18,6 +18,6 @@ type Payment struct {
|
|||
Title string
|
||||
Descr string
|
||||
Note string
|
||||
Items []ItemBought
|
||||
Items []ItemBought `gorm:"constraint:OnDelete:CASCADE;"`
|
||||
Date time.Time
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user