Files
sqlpage--sqlpage/examples/user-authentication/sqlpage/migrations/0000_init.sql
T
Ophir LOJKINE 23f834de71 null variables (#136)
* update dependencies

* Add support for resetting variables to a `NULL` value using `SET`. Previously, storing `NULL` in a variable would store the string `'null'` instead of the `NULL` value.
2023-11-19 20:09:18 +01:00

11 lines
268 B
SQL

CREATE TABLE user_info (
username TEXT PRIMARY KEY,
password_hash TEXT NOT NULL
);
CREATE TABLE login_session (
id TEXT PRIMARY KEY,
username TEXT NOT NULL REFERENCES user_info(username),
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);