diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-11 17:53:59 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-11 17:53:59 +0530 |
commit | a8ce35aa10c0b61458aaee8820f8c937708f1133 (patch) | |
tree | c12a3b2aecd82729d1777299a563c46ab8ba61c6 /customer/customer.go | |
parent | 37fec5e9e7ef24c4f682bf5103b9d0bd6769ce8b (diff) |
properly deleting shipping addresses on customer editv0.14.0
Diffstat (limited to 'customer/customer.go')
-rw-r--r-- | customer/customer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/customer/customer.go b/customer/customer.go index 6e7d2e5..c1290bf 100644 --- a/customer/customer.go +++ b/customer/customer.go @@ -54,5 +54,5 @@ type Customer struct { Email string Website string BillingAddress CustomerBillingAddress - ShippingAddresses []CustomerShippingAddress + ShippingAddresses []CustomerShippingAddress `gorm:"index;constraint:OnDelete:CASCADE;"` } |