/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 1 - 2022-12-06 18:03:05 [3.99ms] */
select * from `users` where `email` = 'teller@user.com' and `status` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 2 - 2022-12-06 18:03:05 [0.2ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 3 - 2022-12-06 18:03:05 [1.24ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 5 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 4 - 2022-12-06 18:03:05 [6.66ms] */
update `userprofiles` set `last_ip` = '102.128.130.68', `login_count` = 317, `last_login` = '2022-12-06 18:03:05', `userprofiles`.`updated_at` = '2022-12-06 18:03:05' where `id` = 5;
/*==================================================*/
/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 5 - 2022-12-06 18:03:05 [1.01ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'train_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 6 - 2022-12-06 18:03:05 [1.68ms] */
select * from `permissions`;
/*==================================================*/
/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 7 - 2022-12-06 18:03:05 [0.63ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'train_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 8 - 2022-12-06 18:03:05 [2.24ms] */
select `roles`.*, `role_has_permissions`.`permission_id` as `pivot_permission_id`, `role_has_permissions`.`role_id` as `pivot_role_id` from `roles` inner join `role_has_permissions` on `roles`.`id` = `role_has_permissions`.`role_id` where `role_has_permissions`.`permission_id` in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44);
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org
   Query 1 - 2022-12-06 18:03:06 [1.21ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org
   Query 2 - 2022-12-06 18:03:06 [0.36ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'train_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en
   Query 1 - 2022-12-06 18:03:06 [1.19ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en
   Query 2 - 2022-12-06 18:03:06 [0.37ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'train_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 1 - 2022-12-06 18:03:06 [1.18ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 2 - 2022-12-06 18:03:06 [0.38ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'train_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 3 - 2022-12-06 18:03:06 [1.32ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 4 - 2022-12-06 18:03:06 [2.95ms] */
select count(*) as aggregate from `transaction` inner join `workflow_definition` on `workflow_definition`.`id` = `transaction`.`current_workflow_state_id` where `workflow_definition`.`role_id` in (5) and `transaction`.`deleted_at` is null and `district_id` = 50;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 5 - 2022-12-06 18:03:06 [0.28ms] */
select `transaction`.* from `transaction` inner join `workflow_definition` on `workflow_definition`.`id` = `transaction`.`current_workflow_state_id` where `workflow_definition`.`role_id` in (5) and `transaction`.`deleted_at` is null and `district_id` = 50 order by `transaction`.`created_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 6 - 2022-12-06 18:03:06 [0.12ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 7 - 2022-12-06 18:03:06 [1.04ms] */
select * from `service_workflow` where `service_workflow`.`id` = 6 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 8 - 2022-12-06 18:03:06 [0.18ms] */
select * from `service` where `service`.`id` = 6 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 9 - 2022-12-06 18:03:06 [0.16ms] */
select * from `service` where `service`.`id` = 6 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 10 - 2022-12-06 18:03:06 [1.3ms] */
select * from `vehicle` where `vehicle`.`id` = 146 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 11 - 2022-12-06 18:03:06 [1.47ms] */
select * from `party` where `party`.`id` = 141 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 12 - 2022-12-06 18:03:06 [1.73ms] */
select * from `person` where `person`.`id` = 123 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 13 - 2022-12-06 18:03:06 [1.85ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 153 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 14 - 2022-12-06 18:03:06 [1.69ms] */
select * from `classification_type` where `classification_type`.`id` = 1 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 15 - 2022-12-06 18:03:06 [1.39ms] */
select * from `sub_category` where `sub_category`.`id` = 9 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 16 - 2022-12-06 18:03:06 [0.27ms] */
select * from `users` where `users`.`id` = 5 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 17 - 2022-12-06 18:03:06 [0.69ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 24 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 18 - 2022-12-06 18:03:06 [0.64ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'train_rta' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 19 - 2022-12-06 18:03:06 [0.28ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 20 - 2022-12-06 18:03:06 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 6 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 21 - 2022-12-06 18:03:06 [0.2ms] */
select * from `service` where `service`.`id` = 6 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 22 - 2022-12-06 18:03:06 [0.18ms] */
select * from `service` where `service`.`id` = 6 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 23 - 2022-12-06 18:03:06 [0.3ms] */
select * from `vehicle` where `vehicle`.`id` = 149 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 24 - 2022-12-06 18:03:06 [0.3ms] */
select * from `party` where `party`.`id` = 135 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 25 - 2022-12-06 18:03:06 [0.33ms] */
select * from `person` where `person`.`id` = 118 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 26 - 2022-12-06 18:03:06 [0.32ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 157 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 27 - 2022-12-06 18:03:06 [0.23ms] */
select * from `classification_type` where `classification_type`.`id` = 4 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 28 - 2022-12-06 18:03:06 [0.22ms] */
select * from `sub_category` where `sub_category`.`id` = 9 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 29 - 2022-12-06 18:03:06 [0.44ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 24 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 30 - 2022-12-06 18:03:06 [0.32ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 31 - 2022-12-06 18:03:06 [0.31ms] */
select * from `service_workflow` where `service_workflow`.`id` = 6 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 32 - 2022-12-06 18:03:06 [0.32ms] */
select * from `service` where `service`.`id` = 6 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 33 - 2022-12-06 18:03:06 [0.3ms] */
select * from `service` where `service`.`id` = 6 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 34 - 2022-12-06 18:03:06 [0.39ms] */
select * from `vehicle` where `vehicle`.`id` = 143 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 35 - 2022-12-06 18:03:06 [0.27ms] */
select * from `party` where `party`.`id` = 133 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 36 - 2022-12-06 18:03:06 [0.35ms] */
select * from `person` where `person`.`id` = 116 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 37 - 2022-12-06 18:03:06 [0.38ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 150 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 38 - 2022-12-06 18:03:06 [0.32ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 39 - 2022-12-06 18:03:06 [0.23ms] */
select * from `sub_category` where `sub_category`.`id` = 9 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 40 - 2022-12-06 18:03:06 [0.24ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 24 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 41 - 2022-12-06 18:03:06 [0.25ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 42 - 2022-12-06 18:03:06 [0.32ms] */
select * from `service_workflow` where `service_workflow`.`id` = 1 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 43 - 2022-12-06 18:03:06 [0.23ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 44 - 2022-12-06 18:03:06 [0.22ms] */
select * from `service` where `service`.`id` = 1 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 45 - 2022-12-06 18:03:06 [0.24ms] */
select * from `vehicle` where `vehicle`.`id` = 140 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 46 - 2022-12-06 18:03:06 [0.23ms] */
select * from `party` where `party`.`id` = 136 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 47 - 2022-12-06 18:03:06 [0.28ms] */
select * from `person` where `person`.`id` = 119 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 48 - 2022-12-06 18:03:06 [0.3ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 147 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 49 - 2022-12-06 18:03:06 [0.24ms] */
select * from `classification_type` where `classification_type`.`id` = 2 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 50 - 2022-12-06 18:03:06 [0.29ms] */
select * from `sub_category` where `sub_category`.`id` = 7 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 51 - 2022-12-06 18:03:06 [0.41ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 1 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 52 - 2022-12-06 18:03:06 [0.24ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 53 - 2022-12-06 18:03:06 [0.3ms] */
select * from `service_workflow` where `service_workflow`.`id` = 6 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 54 - 2022-12-06 18:03:06 [0.24ms] */
select * from `service` where `service`.`id` = 6 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 55 - 2022-12-06 18:03:06 [0.21ms] */
select * from `service` where `service`.`id` = 6 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 56 - 2022-12-06 18:03:06 [0.33ms] */
select * from `vehicle` where `vehicle`.`id` = 134 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 57 - 2022-12-06 18:03:06 [0.34ms] */
select * from `party` where `party`.`id` = 129 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 58 - 2022-12-06 18:03:06 [0.26ms] */
select * from `person` where `person`.`id` = 113 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 59 - 2022-12-06 18:03:06 [0.16ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 141 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 60 - 2022-12-06 18:03:06 [0.11ms] */
select * from `classification_type` where `classification_type`.`id` = 1 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 61 - 2022-12-06 18:03:06 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 8 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 62 - 2022-12-06 18:03:06 [0.12ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 24 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 63 - 2022-12-06 18:03:06 [0.1ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 64 - 2022-12-06 18:03:06 [0.11ms] */
select * from `service_workflow` where `service_workflow`.`id` = 6 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 65 - 2022-12-06 18:03:06 [0.1ms] */
select * from `service` where `service`.`id` = 6 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 66 - 2022-12-06 18:03:06 [0.11ms] */
select * from `service` where `service`.`id` = 6 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 67 - 2022-12-06 18:03:06 [0.16ms] */
select * from `vehicle` where `vehicle`.`id` = 89 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 68 - 2022-12-06 18:03:06 [0.15ms] */
select * from `party` where `party`.`id` = 98 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 69 - 2022-12-06 18:03:06 [0.17ms] */
select * from `person` where `person`.`id` = 82 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 70 - 2022-12-06 18:03:06 [0.17ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 96 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 71 - 2022-12-06 18:03:06 [0.11ms] */
select * from `classification_type` where `classification_type`.`id` = 1 and `classification_type`.`id` is not null and `classification_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 72 - 2022-12-06 18:03:06 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 11 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 73 - 2022-12-06 18:03:06 [0.12ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 24 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 74 - 2022-12-06 18:03:06 [0.1ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 75 - 2022-12-06 18:03:06 [1.14ms] */
select * from `district` where `district`.`id` = 50 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/w/wkflw
   Query 76 - 2022-12-06 18:03:06 [0.84ms] */
select * from `region` where `region`.`id` = 9 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 1 - 2022-12-06 18:06:38 [1.47ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 2 - 2022-12-06 18:06:38 [0.37ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'train_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 3 - 2022-12-06 18:06:38 [0.93ms] */
select count(*) as aggregate from `person` where `person`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 4 - 2022-12-06 18:06:38 [0.29ms] */
select * from `person` where `person`.`deleted_at` is null order by `updated_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 5 - 2022-12-06 18:06:38 [0.28ms] */
select * from `region` where `region`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 6 - 2022-12-06 18:06:38 [0.14ms] */
select * from `district` where `region_id` is null and `district`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 7 - 2022-12-06 18:06:38 [0.11ms] */
select count(*) as aggregate from `person` where `person`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 8 - 2022-12-06 18:06:38 [0.14ms] */
select * from `person` where `person`.`deleted_at` is null order by `updated_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 9 - 2022-12-06 18:06:38 [0.34ms] */
select * from `party` where `party`.`partyable_id` = 145 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 10 - 2022-12-06 18:06:38 [0.24ms] */
select * from `party` where `party`.`partyable_id` = 144 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 11 - 2022-12-06 18:06:38 [0.23ms] */
select * from `party` where `party`.`partyable_id` = 143 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 12 - 2022-12-06 18:06:38 [0.24ms] */
select * from `party` where `party`.`partyable_id` = 142 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 13 - 2022-12-06 18:06:38 [0.25ms] */
select * from `party` where `party`.`partyable_id` = 141 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 14 - 2022-12-06 18:06:38 [0.23ms] */
select * from `party` where `party`.`partyable_id` = 140 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 15 - 2022-12-06 18:06:38 [0.25ms] */
select * from `party` where `party`.`partyable_id` = 139 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 16 - 2022-12-06 18:06:38 [0.23ms] */
select * from `party` where `party`.`partyable_id` = 138 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 17 - 2022-12-06 18:06:38 [0.2ms] */
select * from `party` where `party`.`partyable_id` = 30 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 18 - 2022-12-06 18:06:38 [0.24ms] */
select * from `party` where `party`.`partyable_id` = 137 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 19 - 2022-12-06 18:06:38 [0.13ms] */
select * from `party` where `party`.`partyable_id` = 145 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 20 - 2022-12-06 18:06:38 [0.12ms] */
select * from `party` where `party`.`partyable_id` = 144 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 21 - 2022-12-06 18:06:38 [0.12ms] */
select * from `party` where `party`.`partyable_id` = 143 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 22 - 2022-12-06 18:06:38 [0.12ms] */
select * from `party` where `party`.`partyable_id` = 142 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 23 - 2022-12-06 18:06:38 [0.12ms] */
select * from `party` where `party`.`partyable_id` = 141 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 24 - 2022-12-06 18:06:38 [0.12ms] */
select * from `party` where `party`.`partyable_id` = 140 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 25 - 2022-12-06 18:06:38 [0.12ms] */
select * from `party` where `party`.`partyable_id` = 139 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 26 - 2022-12-06 18:06:38 [0.13ms] */
select * from `party` where `party`.`partyable_id` = 138 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 27 - 2022-12-06 18:06:38 [0.12ms] */
select * from `party` where `party`.`partyable_id` = 30 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 28 - 2022-12-06 18:06:38 [0.12ms] */
select * from `party` where `party`.`partyable_id` = 137 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 29 - 2022-12-06 18:06:38 [0.23ms] */
select * from `district` where `district`.`id` = 50 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party
   Query 30 - 2022-12-06 18:06:38 [0.21ms] */
select * from `region` where `region`.`id` = 9 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 1 - 2022-12-06 18:06:40 [1.29ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 2 - 2022-12-06 18:06:40 [0.37ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'train_rta' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 3 - 2022-12-06 18:06:40 [0.28ms] */
select * from `party` where `party`.`id` = 163 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 4 - 2022-12-06 18:06:40 [0.21ms] */
select * from `person` where `person`.`id` = 145 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 5 - 2022-12-06 18:06:40 [0.13ms] */
select * from `party` where `party`.`partyable_id` = 145 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 6 - 2022-12-06 18:06:40 [0.72ms] */
select count(*) as aggregate from `party_vehicle` where `party_id` = 163 and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 7 - 2022-12-06 18:06:40 [0.44ms] */
select count(*) as aggregate from `transaction` where `party_id` = 163 and `status` = 'INPROGRESS' and `transaction`.`deleted_at` is null and `district_id` = 50;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 8 - 2022-12-06 18:06:40 [1.3ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` where `party_id` = 163 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 9 - 2022-12-06 18:06:40 [0.17ms] */
select count(*) as aggregate from `invoice` where `party_id` = 163 and `outstanding_balance` > 0 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 10 - 2022-12-06 18:06:40 [0.22ms] */
select * from `party_vehicle` where `party_id` = 163 and `party_vehicle`.`deleted_at` is null order by `updated_at` desc;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 11 - 2022-12-06 18:06:40 [0.21ms] */
select count(*) as aggregate from `invoice` where `party_id` in (163) and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 12 - 2022-12-06 18:06:40 [0.12ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 13 - 2022-12-06 18:06:40 [0.38ms] */
select count(*) as aggregate from `transaction` inner join `workflow_definition` on `workflow_definition`.`id` = `transaction`.`current_workflow_state_id` where `workflow_definition`.`role_id` in (5) and `party_id` = 163 and `transaction`.`deleted_at` is null and `district_id` = 50;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 14 - 2022-12-06 18:06:40 [0.15ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 15 - 2022-12-06 18:06:40 [1.18ms] */
select * from `discount` where `party_id` = 163 and `discount`.`deleted_at` is null order by `created_at` desc;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 16 - 2022-12-06 18:06:40 [0.2ms] */
select * from `party` where `party`.`id` = 163 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 17 - 2022-12-06 18:06:40 [0.12ms] */
select * from `person` where `person`.`id` = 145 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 18 - 2022-12-06 18:06:40 [0.12ms] */
select * from `party` where `party`.`partyable_id` = 145 and `party`.`partyable_id` is not null and `party`.`partyable_type` = 'Person' and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 19 - 2022-12-06 18:06:40 [0.12ms] */
select * from `district` where `district`.`id` = 50 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en/m/party/163
   Query 20 - 2022-12-06 18:06:40 [0.11ms] */
select * from `region` where `region`.`id` = 9 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
