1
0

hash password

This commit is contained in:
2024-05-21 06:34:55 +03:00
parent ea4f857d6b
commit ff1e29939b
8 changed files with 71 additions and 12 deletions

View File

@@ -1,8 +1,8 @@
CREATE TABLE IF NOT EXISTS user (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`avatar` VARCHAR,
`username` VARCHAR UNIQUE,
`password` VARCHAR,
`username` VARCHAR UNIQUE NOT NULL,
`password_hash` VARCHAR NOT NULL,
`last_seen` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);