aboutsummaryrefslogtreecommitdiff
path: root/server/database/database.go
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-07-02 17:06:26 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-07-02 17:06:26 +0530
commite946f0e51cbe72cec6bdf599c8ee9c1be1f64e0b (patch)
tree54a2ee83a315a0d933bd303415249a3465ddc5c6 /server/database/database.go
parenteedde57b9caff20e1e7d25b43fcb8785e23b3e11 (diff)
working on the form info like date and stuff
Diffstat (limited to 'server/database/database.go')
-rw-r--r--server/database/database.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/database/database.go b/server/database/database.go
index 2339d29..5e3e940 100644
--- a/server/database/database.go
+++ b/server/database/database.go
@@ -47,5 +47,13 @@ func InitDB() {
Email TEXT)`,
)
init_users.Exec()
+
+ init_invoices, _ := myDatabase.Prepare(
+ `CREATE TABLE IF NOT EXISTS Invoices
+ (id INTEGER PRIMARY KEY AUTOINCREMENT,
+ Data BLOB NOT NULL,
+ Created_on DATETIME)`,
+ )
+ init_invoices.Exec()
}