ЛР 2: Сохранение сессий PostgreSQL
Skeleton contracts / contracts (pull_request) Blocked by required conditions

This commit is contained in:
2026-12-01 22:02:33 +03:00
parent 65003b6119
commit 79630e6c8c
16 changed files with 733 additions and 16 deletions
+7
View File
@@ -0,0 +1,7 @@
CREATE TABLE users (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
username TEXT NOT NULL UNIQUE CHECK (username ~ '^[a-z0-9_]{3,32}$'),
display_name TEXT NOT NULL CHECK (char_length(display_name) BETWEEN 1 AND 100),
password_hash TEXT NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);