Advertisement
Guest User

Untitled

a guest
Aug 15th, 2017
10,880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. EsiaTest006@yandex.ru / 11111111
  2. EsiaTest002@yandex.ru / 11111111
  3. EsiaTest003@yandex.ru / 11111111
  4.  
  5.  
  6. INSERT INTO sec.user( id, employee_id, snils, name, surname, patronymic, email, disabled, auth_type, agent_system_id, agential_username ) VALUES ( 14, null, '00000060002', 'Имя002', 'Фамилия002', 'Отчество002', null, false, 'ESIA', null, null );
  7. INSERT INTO sec.user( id, employee_id, snils, name, surname, patronymic, email, disabled, auth_type, agent_system_id, agential_username ) VALUES ( 15, null, '00000060003', 'Имя003', 'Фамилия003', null, null, false, 'ESIA', null, null );
  8.  
  9. insert into sec.role(name, type_id, code) values ('Полный доступ', 'ORD', 'test_1');
  10.  
  11. insert into sec.role_permission (role_id, permission_id)
  12. select r.id, p.id
  13. from sec.permission p, sec.role r
  14.  
  15. insert into sec.user_role (user_id, role_id)
  16. select u.id, r.id
  17. from sec.user u
  18. cross join sec.role r;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement