Adds unique constraint to email in USER table

This commit is contained in:
Dennis Schoepf 2024-04-30 20:05:46 +02:00
parent cfe335ea39
commit 9b06e6a5cc

View file

@ -2,7 +2,7 @@
CREATE table user (
id text PRIMARY KEY,
first_name text NOT NULL,
email text NOT NULL
email text NOT NULL UNIQUE
);
-- +migrate Down