aboutsummaryrefslogtreecommitdiff
path: root/server/database/main.go
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-13 23:41:06 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-13 23:41:06 +0530
commitb000b2237af35fad5267e24a45f35897bd4d7d6e (patch)
treee0fc9fc3345eca222538895dd93f691f93a201c0 /server/database/main.go
parent671c3a765ffc53575f517cef715dc16be5aa43c5 (diff)
implement API route for users
Diffstat (limited to 'server/database/main.go')
-rw-r--r--server/database/main.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/database/main.go b/server/database/main.go
index 811a8eb..4eb1a91 100644
--- a/server/database/main.go
+++ b/server/database/main.go
@@ -39,5 +39,13 @@ func StartDB() {
Email TEXT)`,
)
init_people.Exec()
+
+ init_users, _ := myDatabase.Prepare(
+ `CREATE TABLE IF NOT EXISTS Users
+ (id INTEGER PRIMARY KEY AUTOINCREMENT,
+ Name TEXT,
+ Email TEXT)`,
+ )
+ init_users.Exec()
}