Adding crypto package to hash user's password on our User Model. Create our User Model with some helpers. Creating migration for our users table.
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 49s

This commit is contained in:
Maxime Delporte
2025-11-25 11:35:24 +01:00
parent 6b4056e0f5
commit 5a4b7bceb0
6 changed files with 97 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS users (
id bigserial PRIMARY KEY,
created_at timestamp(0) with time zone NOT NULL DEFAULT NOW(),
name text NOT NULL,
email citext UNIQUE NOT NULL,
password_hash bytea NOT NULL,
activated bool NOT NULL,
version integer NOT NULL DEFAULT 1
);