Changes between Version 14 and Version 15 of ImportantUseCase3


Ignore:
Timestamp:
03/10/22 17:14:11 (3 years ago)
Author:
191151
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ImportantUseCase3

    v14 v15  
    1111
    1212{{{#!sql
    13 select u.email, u.username, u.full_name, u.profile_picture, u.type,
     13select u.email, u.username, u.name, u.profile_picture, u.type,
    1414        coalesce (a.*) as artist,
    1515        coalesce (o.*) as organizer,
     
    2626                and u."type" = 'MANAGER'::project."user_type"
    2727        where
    28                 u.email = 'test_artist@mail.com'
     28                u.email = 'v_artist@mail.com'
    2929                and u.password = 'password';
    3030}}}
     
    3535
    3636{{{#!sql
    37 select u.full_name, u.email
     37select u.name, u.email
    3838        from artists a
    3939        join managers m
     
    4444                a.user_id = (
    4545                        select u.id from users u
    46                         where u.email = 'test_artist@mail.com'
     46                        where u.email = 'v_artist@mail.com'
    4747                );
    4848}}}
     
    5353
    5454{{{#!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(),(
     55INSERT INTO project.manager_invites (email,invitation_token,created_at,artist_id)
     56        VALUES ('v_manager@mail.com','$2y$10$mTOpvSVqKzGDHpUC5lyrPOfwcYgU7kz9Gbuc22dske4I2g4I.QZ6i',now(),(
    5757                select u.id from users u
    58                 where u.email = 'test_artist@mail.com'
     58                where u.email = 'v_artist@mail.com'
    5959                and u.type = 'ARTIST'::project."user_type"     
    6060        ));
     
    7070join users u on u.id = m.user_id
    7171where
    72         u.email = 'test_manager@mail.com'
     72        u.email = 'v_manager@mail.com'
    7373       
    7474-- доколку нема менаџер со внесената мејл адреса се регистрира нов корисник од тип менаџер
    75 insert into project.users (email,username,password,full_name,created_at,profile_picture,type)
    76         values ('test_manager@mail.com','test_manager','password','Test Manager', now(),'manager.jpg','MANAGER'::project."user_type");
     75insert 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");
    7777
    7878
     
    8181        set manager_id  = (
    8282                select u.id from users u
    83                 where u.email = 'test_manager@mail.com'
     83                where u.email = 'v_manager@mail.com'
    8484        )
    8585        where user_id = (
    8686                select u.id from users u
    87                 where u.email = 'test_artist@mail.com'
     87                where u.email = 'v_artist@mail.com'
    8888        );
    8989}}}