2024-02-26 00:12:13 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS users (
|
|
|
|
id INTEGER PRIMARY KEY,
|
2024-02-27 08:05:07 +01:00
|
|
|
userId TEXT DEFAULT (HEX(RANDOMBLOB(4))) NOT NULL UNIQUE,
|
2024-02-27 05:50:28 +01:00
|
|
|
username VARCHAR(255) NOT NULL UNIQUE,
|
2024-02-26 00:12:13 +01:00
|
|
|
password VARCHAR(255) NOT NULL
|
2024-02-27 08:05:07 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS users_username_index ON users (username);
|
|
|
|
CREATE INDEX IF NOT EXISTS users_userId_index ON users (userId);
|