From 8c906c98b2a2994286731357831ca8005ef0d73f Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sun, 8 Aug 2021 16:11:08 +0530 Subject: Added better support for saving client data --- server/database/database.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'server/database/database.go') 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() -- cgit v1.2.3