2023-10-03 17:31:43 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS users (
|
|
|
|
id INTEGER PRIMARY KEY NOT NULL,
|
|
|
|
username TEXT NOT NULL,
|
|
|
|
token TEXT NOT NULL
|
|
|
|
);
|
|
|
|
|
2023-10-03 17:56:55 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS sessions (
|
2023-10-03 17:31:43 +00:00
|
|
|
token TEXT NOT NULL,
|
2023-10-03 17:56:55 +00:00
|
|
|
user_id INTEGER,
|
|
|
|
FOREIGN KEY(user_id) REFERENCES users(id)
|
2023-10-03 17:31:43 +00:00
|
|
|
);
|