diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-08-08 16:11:08 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-08-08 16:11:08 +0530 |
commit | 8c906c98b2a2994286731357831ca8005ef0d73f (patch) | |
tree | fd4f7a283e230d149099fe285ae7a56cda237e64 /server/database/database.go | |
parent | 0f0e5f7408969fcc4473746919bb0e8aaa89947c (diff) |
Added better support for saving client data
Diffstat (limited to 'server/database/database.go')
-rw-r--r-- | server/database/database.go | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/server/database/database.go b/server/database/database.go index 68c3c76..a7a4f34 100644 --- a/server/database/database.go +++ b/server/database/database.go @@ -44,9 +44,18 @@ func InitDB() { Name TEXT, Phone TEXT, Email TEXT, - BillAddress BLOB, - ShipAddress BLOB, - GSTIN TEXT)`, + + BillAddressLine TEXT, + BillAddressCity TEXT, + BillAddressState TEXT, + BillAddressPINCode TEXT, + BillAddressCountry TEXT, + + ShipAddressLine TEXT, + ShipAddressCity TEXT, + ShipAddressState TEXT, + ShipAddressPINCode TEXT, + ShipAddressCountry TEXT)`, ) init_people.Exec() |