summaryrefslogtreecommitdiff
path: root/db/main.go
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-03-16 07:33:33 +0530
committersinanmohd <sinan@sinanmohd.com>2024-03-16 09:24:06 +0530
commitc6ae7acc13d243f7fcd2115be1da142678e71f70 (patch)
tree7e4be51b816743bcf55d8238b2554856e07e3a4f /db/main.go
parentaffa80ee065a41b2afe3a7a12a499a86a88e2950 (diff)
db/Account: Email -> UserName
Diffstat (limited to 'db/main.go')
-rw-r--r--db/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/main.go b/db/main.go
index c78ea3a..801cb65 100644
--- a/db/main.go
+++ b/db/main.go
@@ -33,7 +33,7 @@ func NewSafeDB() (*SafeDB, error) {
const create string = `
CREATE TABLE IF NOT EXISTS Accounts(
id INTEGER PRIMARY KEY,
- Email CHAR(64) NOT NULL UNIQUE,
+ UserName CHAR(64) NOT NULL UNIQUE,
PassHash CHAR(128) NOT NULL,
Level INTEGER NOT NULL,