Ajout du rôle dans la fichie utilisateur + création de fixtures avec les rôles user/admin
This commit is contained in:
@ -5,7 +5,8 @@ CREATE TABLE public.users (
|
||||
full_name text,
|
||||
email text UNIQUE NOT NULL CHECK (length(email) < 255),
|
||||
created_at timestamptz NOT NULL NOT NULL DEFAULT NOW(),
|
||||
updated_at timestamptz NOT NULL NOT NULL DEFAULT NOW()
|
||||
updated_at timestamptz NOT NULL NOT NULL DEFAULT NOW(),
|
||||
role varchar(64)
|
||||
);
|
||||
|
||||
---- create above / drop below ----
|
||||
@ -14,4 +15,3 @@ CREATE TABLE public.users (
|
||||
-- then delete the separator line above.
|
||||
|
||||
DROP TABLE public.users
|
||||
|
||||
|
Reference in New Issue
Block a user