asxpio/db/migrations
Sergei Poljanski 331917522c
db: users + password_tokens migration
Adds users (citext email, nullable password_hash so a user can be
invited before claiming) and password_tokens (hashed one-shot tokens
for initial-set and reset, with purpose + TTL + used_at).

Token raw values live only in the email body; the DB stores SHA256
of the token so a DB leak doesn't grant account access.
2026-05-26 19:07:55 +03:00
..
001_invoices.rb db: connection helper and invoices migration 2026-05-26 17:43:18 +03:00
002_users_and_password_tokens.rb db: users + password_tokens migration 2026-05-26 19:07:55 +03:00