Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INSERT INTO public."Role"("name")
- VALUES
- ('canCreateRole'),
- ('canCreateUser'),
- ('canCreateProfile'),
- ('canUpdateProfile'),
- ('canReadProfile'),
- ('canDeleteProfile'),
- ('canUpdateProfileRoles'),
- ('canUpdateUser'),
- ('canReadUser'),
- ('canDeleteUser'),
- ('canUpdateRole'),
- ('canReadRole'),
- ('canDeleteRole');
- INSERT INTO public."Profile"("name")
- VALUES('Admin');
- INSERT INTO public."_ProfileRoles"("roleId", "profileId")
- SELECT id AS roleId, 1 AS profileId
- FROM public."Role";
- INSERT INTO public."User" ("id", "phoneNumber", "name", "cpf", "email", "password", "profileId")
- VALUES ('f6c2c58a-0f11-49a8-a518-1d498b8a1010', '67996585812', 'César Admin', '30030030030', 'ceshen.marcal@gmail.com', '12345678', 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement