Version 10 (modified by 11 months ago) ( diff ) | ,
---|
Стартување на возење
Актери: Патник
Чекори
Чекор 1: Регистрација на патник
insert into Korisnik (k_ime, k_adresa, k_telefon, k_email, k_embg, k_is_admin, k_lozinka) values ('Test', 'test adresa 1', '070010202', 'test@test.com', '1010002450050', false, 'tt'); insert into Patnik(k_id);
Чекор 2: Најава на патник
select k_id from project.Korisnik where k_email = 'test@test.com' and k_lozinka = 'tt';
Чекор 3: Купување на билет
select tb_ime from TipBilet
insert into Bilet (b_datum_na_kupuvanje, b_status, patnik_k_id, tb_id) values (now(), 'INACTIVE', 5, 1);
Чекор 4: Креирање на возењето
select b_id from project.bilet b join project.tipbilet tb on tb.tb_id = b.tb_id where b.patnik_k_id = 5 and b.b_status in ('ACTIVE', 'INACTIVE')
update project.vozenje set vozenje_status = 'FINISHED' where vozenje_id = (select vozenje_id from project.vozenje where patnik_k_id = 5 and vozenje_status = 'ACTIVE') insert into Vozenje(vozenje_start, vozenje_end, patnik_k_id, kacuva_pnl_id, inl_id, b_id, vozenje_status) values ('2023-01-01 12:00:00', null, 5, 2, 1, 6, 'ACTIVE'); update project.bilet set b_status = 'ACTIVE' where b_id = 6;
Чекор 5: Завршување на возењето
vozenje_id = (select vozenje_id from project.vozenje where patnik_k_id = 1 and vozenje_status = 'ACTIVE') insert into se_simnuva_na(pnl_id, vozenje_id) update project.vozenje set vozenje_status = 'FINISHED' where vozenje_id = (select vozenje_id from project.vozenje where patnik_k_id = 1 and vozenje_status = 'ACTIVE')
Attachments (7)
- dokumenti_216049.png (41.2 KB ) - added by 11 months ago.
- kraj_vozenje_216049.png (36.8 KB ) - added by 11 months ago.
- kupuvanje_bilet_216049.png (25.9 KB ) - added by 11 months ago.
- najava_216049.png (25.5 KB ) - added by 11 months ago.
- pocetna_216049.png (43.6 KB ) - added by 11 months ago.
- registracija_216049.png (42.8 KB ) - added by 11 months ago.
- start_vozenje_216049.png (37.3 KB ) - added by 11 months ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.