Completed for a grade of five
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-10-09 11:50:01 +03:00
parent 1632fe4b16
commit dc5abb6fff
142 changed files with 8207 additions and 57 deletions
+23
View File
@@ -0,0 +1,23 @@
# Password hashes (prefix only)
$argon2id$v=19$m=19456,t=2,p=1$|6
# Sessions: only sha256 of the token is stored
Table "public.sessions"
Column | Type | Collation | Nullable | Default
------------+--------------------------+-----------+----------+---------
id | uuid | | not null |
user_id | uuid | | not null |
token_hash | character varying(64) | | not null |
created_at | timestamp with time zone | | not null |
expires_at | timestamp with time zone | | not null |
Indexes:
"sessions_pkey" PRIMARY KEY, btree (id)
"sessions_token_hash_key" UNIQUE CONSTRAINT, btree (token_hash)
"sessions_user_id_idx" btree (user_id)
Foreign-key constraints:
"sessions_user_id_fkey" FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
64|5
# Secrets are ignored by git
.gitignore:5:secrets/ secrets/db_password
.gitignore:5:secrets/ secrets/redis_password
tracked files under secrets/: 0