bunker/database.sql
SimonFJ20 95b0e099ae
All checks were successful
Validate / Validate (push) Successful in 11s
fix login and files
2024-09-24 02:26:55 +02:00

19 lines
370 B
SQL

PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE users (
username text not null,
passwordHash text not null
);
CREATE TABLE sessions (
token text not null,
userId int not null,
username text not null
);
INSERT INTO USERS (username, passwordHash)
VALUES ('sfj', '$2a$10$7lxFF6MWeWzn8PZDpveuD.KFQHWFutLUg9cjHKG6HR7wVo.p81NTG');
COMMIT;