Changes between Version 14 and Version 15 of ImportantUseCase3
- Timestamp:
- 03/10/22 17:14:11 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ImportantUseCase3
v14 v15 11 11 12 12 {{{#!sql 13 select u.email, u.username, u. full_name, u.profile_picture, u.type,13 select u.email, u.username, u.name, u.profile_picture, u.type, 14 14 coalesce (a.*) as artist, 15 15 coalesce (o.*) as organizer, … … 26 26 and u."type" = 'MANAGER'::project."user_type" 27 27 where 28 u.email = ' test_artist@mail.com'28 u.email = 'v_artist@mail.com' 29 29 and u.password = 'password'; 30 30 }}} … … 35 35 36 36 {{{#!sql 37 select u. full_name, u.email37 select u.name, u.email 38 38 from artists a 39 39 join managers m … … 44 44 a.user_id = ( 45 45 select u.id from users u 46 where u.email = ' test_artist@mail.com'46 where u.email = 'v_artist@mail.com' 47 47 ); 48 48 }}} … … 53 53 54 54 {{{#!sql 55 INSERT INTO project.manager_invites (email, name,invitation_token,created_at,artist_id)56 VALUES (' test_manager@mail.com','Manager','$2y$10$mTOpvSVqKzGDHpUC5lyrPOfwcYgU7kz9Gbuc22dske4I2g4I.QZ6i',now(),(55 INSERT INTO project.manager_invites (email,invitation_token,created_at,artist_id) 56 VALUES ('v_manager@mail.com','$2y$10$mTOpvSVqKzGDHpUC5lyrPOfwcYgU7kz9Gbuc22dske4I2g4I.QZ6i',now(),( 57 57 select u.id from users u 58 where u.email = ' test_artist@mail.com'58 where u.email = 'v_artist@mail.com' 59 59 and u.type = 'ARTIST'::project."user_type" 60 60 )); … … 70 70 join users u on u.id = m.user_id 71 71 where 72 u.email = ' test_manager@mail.com'72 u.email = 'v_manager@mail.com' 73 73 74 74 -- доколку нема менаџер со внесената мејл адреса се регистрира нов корисник од тип менаџер 75 insert into project.users (email,username,password, full_name,created_at,profile_picture,type)76 values (' test_manager@mail.com','test_manager','password','TestManager', now(),'manager.jpg','MANAGER'::project."user_type");75 insert into project.users (email,username,password,name,created_at,profile_picture,type) 76 values ('v_manager@mail.com','v_manager','password','V Manager', now(),'manager.jpg','MANAGER'::project."user_type"); 77 77 78 78 … … 81 81 set manager_id = ( 82 82 select u.id from users u 83 where u.email = ' test_manager@mail.com'83 where u.email = 'v_manager@mail.com' 84 84 ) 85 85 where user_id = ( 86 86 select u.id from users u 87 where u.email = ' test_artist@mail.com'87 where u.email = 'v_artist@mail.com' 88 88 ); 89 89 }}}