From fca1257d62d9a366982242ef44232c89b1e39705 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Tue, 21 Oct 2025 15:59:55 +0200 Subject: [PATCH] Added password field to identity migration file --- .../identity-svc/0001_create_base_tables.up.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/db_migrations/identity-svc/0001_create_base_tables.up.sql b/deploy/db_migrations/identity-svc/0001_create_base_tables.up.sql index 38491e2..46afdf7 100644 --- a/deploy/db_migrations/identity-svc/0001_create_base_tables.up.sql +++ b/deploy/db_migrations/identity-svc/0001_create_base_tables.up.sql @@ -2,10 +2,13 @@ CREATE TABLE IF NOT EXISTS identity.users ( id uuid NOT NULL DEFAULT gen_random_uuid(), username character varying NOT NULL, + "password" character varying NOT NULL, email character varying NOT NULL, created_at timestamp without time zone NOT NULL DEFAULT now(), updated_at timestamp without time zone, - PRIMARY KEY (id) + PRIMARY KEY (id), + UNIQUE(username), + UNIQUE(email) ); ALTER TABLE IF EXISTS identity.users