Added password field to identity migration file
This commit is contained in:
@@ -2,10 +2,13 @@ CREATE TABLE IF NOT EXISTS identity.users
|
|||||||
(
|
(
|
||||||
id uuid NOT NULL DEFAULT gen_random_uuid(),
|
id uuid NOT NULL DEFAULT gen_random_uuid(),
|
||||||
username character varying NOT NULL,
|
username character varying NOT NULL,
|
||||||
|
"password" character varying NOT NULL,
|
||||||
email character varying NOT NULL,
|
email character varying NOT NULL,
|
||||||
created_at timestamp without time zone NOT NULL DEFAULT now(),
|
created_at timestamp without time zone NOT NULL DEFAULT now(),
|
||||||
updated_at timestamp without time zone,
|
updated_at timestamp without time zone,
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id),
|
||||||
|
UNIQUE(username),
|
||||||
|
UNIQUE(email)
|
||||||
);
|
);
|
||||||
|
|
||||||
ALTER TABLE IF EXISTS identity.users
|
ALTER TABLE IF EXISTS identity.users
|
||||||
|
|||||||
Reference in New Issue
Block a user