some stuff from mac

This commit is contained in:
Dmitry Chumak
2025-06-12 13:12:20 +03:00
parent 5ed47a796f
commit b653bdc1b6
10 changed files with 551 additions and 60 deletions

View File

@@ -1,5 +1,5 @@
CREATE TABLE users (
id SERIAL PRIMARY KEY,
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
username TEXT UNIQUE NOT NULL,
password TEXT NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
@@ -10,4 +10,4 @@ CREATE TABLE sessions (
user_id INTEGER NOT NULL REFERENCES users(id),
expires_at TIMESTAMPTZ NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
);