No description
Find a file
yisroel 05f935f275
add Session entity, persistence, fake
Session: immutable holder of token, owning User, createdAt,
expiresAt. isExpired(now) compares >= expiresAt. SessionModel
keys on token (string primary, non-incrementing). migration adds
sessions table with foreign user_id (cascade on user delete) and
indexed expires_at for cleanup queries. EloquentSessionRepository
takes UserRepository to rehydrate the owning User on findByToken;
sessions for deleted users return null. FakeSessionRepository
mirrors with an in-memory map keyed by token, defensive copies on
read.
2026-05-06 15:12:07 +03:00
ai init: agent context files 2026-05-06 14:37:39 +03:00
backend add Session entity, persistence, fake 2026-05-06 15:12:07 +03:00
.envrc add nix flake devshell and process-compose 2026-05-06 14:38:29 +03:00
.gitignore harden devshell: anchor pgdata to repo root, broaden gitignore 2026-05-06 14:58:27 +03:00
AGENTS.md init: agent context files 2026-05-06 14:37:39 +03:00
flake.lock add nix flake devshell and process-compose 2026-05-06 14:38:29 +03:00
flake.nix harden devshell: anchor pgdata to repo root, broaden gitignore 2026-05-06 14:58:27 +03:00
process-compose.yaml add nix flake devshell and process-compose 2026-05-06 14:38:29 +03:00