aboutsummaryrefslogtreecommitdiff
path: root/server/database/database.go
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-24 20:00:10 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-24 20:00:10 +0530
commit5d2222d9fa782b94ba6787e5c6b23aab1e468308 (patch)
tree6bfd4a98ae121c3ce109510021ead96e1b2fa0cd /server/database/database.go
parent5329b1fd16d0b8940f9526b523676dfb1cdbf317 (diff)
Multiple minor bug fixes and convert more compnents to TS
Diffstat (limited to 'server/database/database.go')
-rw-r--r--server/database/database.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/database/database.go b/server/database/database.go
index c2c0dfe..f8d9092 100644
--- a/server/database/database.go
+++ b/server/database/database.go
@@ -20,13 +20,13 @@ func InitDB() {
init_items, _ := myDatabase.Prepare(
`CREATE TABLE IF NOT EXISTS Items
(id INTEGER PRIMARY KEY AUTOINCREMENT,
- Model TEXT NOT NULL,
- Desc TEXT,
- Price REAL,
- Hsn BLOB,
- Gst REAL,
- Category TEXT,
- Brand TEXT)`,
+ Model TEXT NOT NULL,
+ Desc TEXT,
+ UnitPrice REAL,
+ HSN BLOB,
+ TotalGST REAL,
+ Category TEXT,
+ Brand TEXT)`,
)
init_items.Exec()