24 lines
1.0 KiB
Plaintext
24 lines
1.0 KiB
Plaintext
# 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
|