/*
  Warnings:

  - Added the required column `password_hash` to the `user_profiles` table without a default value. This is not possible if the table is not empty.

*/
-- AlterTable
ALTER TABLE "user_profiles" ADD COLUMN     "password_hash" TEXT NOT NULL,
ADD COLUMN     "token_version" INTEGER NOT NULL DEFAULT 0;

COMMENT ON COLUMN "user_profiles"."password_hash" IS 'argon2 hash of the account password (not in the original spec doc — added for authentication)';
COMMENT ON COLUMN "user_profiles"."token_version" IS 'Bumped to invalidate previously-issued JWTs, e.g. on password change (not in the original spec doc — required for stateless JWT auth)';
