/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 1 - 2022-04-25 15:43:12 [7.6ms] */
select * from `users` where `email` = 'admin@admin.com' and `status` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 2 - 2022-04-25 15:43:12 [0.25ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 3 - 2022-04-25 15:43:12 [1.04ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 2 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-04-25 15:43:12 [11.35ms] */
update `userprofiles` set `last_ip` = '41.223.108.202', `login_count` = 93, `last_login` = '2022-04-25 15:43:12', `userprofiles`.`updated_at` = '2022-04-25 15:43:12' where `id` = 2;
/*==================================================*/
/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 5 - 2022-04-25 15:43:12 [0.8ms] */
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-04-25 15:43:12 [1.33ms] */
select * from `permissions`;
/*==================================================*/
/* Origin (request): POST https://trainrta.puntlandgov.org/en/login
   Query 7 - 2022-04-25 15:43:12 [0.59ms] */
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-04-25 15:43:12 [2.37ms] */
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-04-25 15:43:13 [2.08ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org
   Query 2 - 2022-04-25 15:43:13 [0.53ms] */
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-04-25 15:43:13 [1.18ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en
   Query 2 - 2022-04-25 15:43:13 [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
   Query 3 - 2022-04-25 15:43:13 [1.78ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en
   Query 4 - 2022-04-25 15:43:13 [0.5ms] */
select count(*) as aggregate from `party` where `created_at` > '2022-04-25' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en
   Query 5 - 2022-04-25 15:43:13 [1.86ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en
   Query 6 - 2022-04-25 15:43:13 [0.4ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2022-04-25' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en
   Query 7 - 2022-04-25 15:43:13 [6.97ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `payment_date` > '2022-04-24' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en
   Query 8 - 2022-04-25 15:43:13 [1.13ms] */
select sum(`payment_amount`) as aggregate from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `payment_date` > '2022-04-24' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en
   Query 9 - 2022-04-25 15:43:13 [12.36ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `due_date` < '2022-04-25' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en
   Query 10 - 2022-04-25 15:43:13 [2.08ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `due_date` < '2022-04-25' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://trainrta.puntlandgov.org/en
   Query 11 - 2022-04-25 15:43:13 [4.15ms] */
select `service`.`name` as `product`, `district`.`name` as `district`, `payment`.`payment_amount` as `amount` from `Payment` inner join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` inner join `transaction` on `transaction`.`id` = `invoice_payment`.`invoice_id` inner join `service` on `service`.`id` = `transaction`.`service_id` inner join `district` on `district`.`id` = `payment`.`district_id` where `Payment`.`deleted_at` is null;
/*==================================================*/
