diff options
Diffstat (limited to 'customer/customer.go')
-rw-r--r-- | customer/customer.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/customer/customer.go b/customer/customer.go index 5f25e2d..23c630d 100644 --- a/customer/customer.go +++ b/customer/customer.go @@ -20,6 +20,7 @@ package customer import ( "gorm.io/gorm" d "vidhukant.com/openbills/db" + "vidhukant.com/openbills/user" ) var db *gorm.DB @@ -31,6 +32,8 @@ func init() { type CustomerContact struct { gorm.Model + UserID uint `json:"-"` + User user.User `json:"-"` CustomerID uint Name string Phone string @@ -58,6 +61,8 @@ type CustomerShippingAddress struct { type Customer struct { gorm.Model + UserID uint `json:"-"` + User user.User `json:"-"` Name string Gstin string Contact CustomerContact |