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";
- -- A senha do usuário abaixo é '12345678'
- 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', '$2b$10$haqwz8L8kxUuts93f/JRee9MWRVjE6rE.GX9P/d.enLAOu1SblpBO', 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement