2023-04-01 22:31:57 +02:00
|
|
|
DROP TYPE IF EXISTS "UserRoleMapping" CASCADE;
|
|
|
|
CREATE TYPE "UserRoleMapping" AS ENUM (
|
2020-04-20 11:22:39 +02:00
|
|
|
'user',
|
|
|
|
'manager',
|
|
|
|
'owner'
|
|
|
|
);
|
|
|
|
|
2023-04-01 22:31:57 +02:00
|
|
|
ALTER TABLE users ADD COLUMN role "UserRoleMapping" DEFAULT 'user' NOT NULL;
|