select * from `users` where `users`.`id` = 1 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 93 - 2025-03-04 10:13:02 [0.33ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 6 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 94 - 2025-03-04 10:13:02 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 5 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 95 - 2025-03-04 10:13:02 [0.15ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 96 - 2025-03-04 10:13:02 [0.17ms] */
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://testtra.puntlandgov.org/w/wkflw
   Query 97 - 2025-03-04 10:13:02 [0.15ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 98 - 2025-03-04 10:13:02 [0.15ms] */
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://testtra.puntlandgov.org/w/wkflw
   Query 99 - 2025-03-04 10:13:02 [0.28ms] */
select * from `vehicle` where `vehicle`.`id` = 26299 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 100 - 2025-03-04 10:13:02 [0.27ms] */
select * from `party` where `party`.`id` = 17247 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 101 - 2025-03-04 10:13:02 [0.3ms] */
select * from `person` where `person`.`id` = 17247 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 102 - 2025-03-04 10:13:02 [0.26ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 7 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 103 - 2025-03-04 10:13:02 [0.17ms] */
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://testtra.puntlandgov.org/w/wkflw
   Query 104 - 2025-03-04 10:13:02 [0.15ms] */
select * from `sub_category` where `sub_category`.`id` = 1 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 105 - 2025-03-04 10:13:02 [0.16ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 106 - 2025-03-04 10:13:02 [0.17ms] */
select * from `users` where `users`.`id` = 1 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 107 - 2025-03-04 10:13:02 [0.31ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 7 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 108 - 2025-03-04 10:13:02 [0.17ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 5 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 109 - 2025-03-04 10:13:02 [0.15ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 110 - 2025-03-04 10:13:02 [0.16ms] */
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://testtra.puntlandgov.org/w/wkflw
   Query 111 - 2025-03-04 10:13:02 [0.14ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 112 - 2025-03-04 10:13:02 [0.14ms] */
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://testtra.puntlandgov.org/w/wkflw
   Query 113 - 2025-03-04 10:13:02 [0.24ms] */
select * from `vehicle` where `vehicle`.`id` = 26300 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 114 - 2025-03-04 10:13:02 [0.25ms] */
select * from `party` where `party`.`id` = 17248 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 115 - 2025-03-04 10:13:02 [0.26ms] */
select * from `person` where `person`.`id` = 17248 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 116 - 2025-03-04 10:13:02 [0.25ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 8 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 117 - 2025-03-04 10:13:02 [0.16ms] */
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://testtra.puntlandgov.org/w/wkflw
   Query 118 - 2025-03-04 10:13:02 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 1 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 119 - 2025-03-04 10:13:02 [0.16ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 120 - 2025-03-04 10:13:02 [0.16ms] */
select * from `users` where `users`.`id` = 1 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 121 - 2025-03-04 10:13:02 [0.27ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 8 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 122 - 2025-03-04 10:13:02 [0.18ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 5 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 123 - 2025-03-04 10:13:02 [0.14ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 124 - 2025-03-04 10:13:02 [0.16ms] */
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://testtra.puntlandgov.org/w/wkflw
   Query 125 - 2025-03-04 10:13:02 [0.14ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 126 - 2025-03-04 10:13:02 [0.14ms] */
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://testtra.puntlandgov.org/w/wkflw
   Query 127 - 2025-03-04 10:13:02 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 26301 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 128 - 2025-03-04 10:13:02 [0.26ms] */
select * from `party` where `party`.`id` = 17249 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 129 - 2025-03-04 10:13:02 [0.27ms] */
select * from `person` where `person`.`id` = 17249 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 130 - 2025-03-04 10:13:02 [0.23ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 9 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 131 - 2025-03-04 10:13:02 [0.15ms] */
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://testtra.puntlandgov.org/w/wkflw
   Query 132 - 2025-03-04 10:13:02 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 1 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 133 - 2025-03-04 10:13:02 [0.15ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 134 - 2025-03-04 10:13:02 [0.16ms] */
select * from `users` where `users`.`id` = 1 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 135 - 2025-03-04 10:13:02 [0.31ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 9 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 136 - 2025-03-04 10:13:02 [0.16ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 5 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 137 - 2025-03-04 10:13:02 [0.14ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 138 - 2025-03-04 10:13:02 [0.17ms] */
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://testtra.puntlandgov.org/w/wkflw
   Query 139 - 2025-03-04 10:13:02 [0.16ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 140 - 2025-03-04 10:13:02 [0.15ms] */
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://testtra.puntlandgov.org/w/wkflw
   Query 141 - 2025-03-04 10:13:02 [0.26ms] */
select * from `vehicle` where `vehicle`.`id` = 26302 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 142 - 2025-03-04 10:13:02 [0.28ms] */
select * from `party` where `party`.`id` = 17250 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 143 - 2025-03-04 10:13:02 [0.59ms] */
select * from `person` where `person`.`id` = 17250 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 144 - 2025-03-04 10:13:02 [0.25ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 10 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 145 - 2025-03-04 10:13:02 [0.14ms] */
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://testtra.puntlandgov.org/w/wkflw
   Query 146 - 2025-03-04 10:13:02 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 1 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 147 - 2025-03-04 10:13:02 [0.17ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 148 - 2025-03-04 10:13:02 [0.16ms] */
select * from `users` where `users`.`id` = 1 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 149 - 2025-03-04 10:13:02 [0.28ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 10 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 150 - 2025-03-04 10:13:02 [0.16ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 5 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 151 - 2025-03-04 10:13:02 [0.14ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 152 - 2025-03-04 10:13:02 [0.35ms] */
select * from `district` where `district`.`id` = 11 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw
   Query 153 - 2025-03-04 10:13:02 [0.33ms] */
select * from `region` where `region`.`id` = 3 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/exit-impersonate
   Query 1 - 2025-03-04 10:13:14 [1.73ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/exit-impersonate
   Query 2 - 2025-03-04 10:13:14 [0.57ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/exit-impersonate
   Query 3 - 2025-03-04 10:13:14 [0.55ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/exit-impersonate
   Query 4 - 2025-03-04 10:13:14 [0.5ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/exit-impersonate
   Query 5 - 2025-03-04 10:13:14 [0.18ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 1 - 2025-03-04 10:13:14 [1.71ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 2 - 2025-03-04 10:13:14 [0.51ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 3 - 2025-03-04 10:13:14 [0.59ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 4 - 2025-03-04 10:13:14 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 5 - 2025-03-04 10:13:14 [61.09ms] */
select count(*) as aggregate from `party` where `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 6 - 2025-03-04 10:13:14 [19.67ms] */
select count(*) as aggregate from `party` where `created_at` > '2025-03-04' and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 7 - 2025-03-04 10:13:14 [135.18ms] */
select count(*) as aggregate from `vehicle` where `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 8 - 2025-03-04 10:13:14 [30.48ms] */
select count(*) as aggregate from `vehicle` where `created_at` > '2025-03-04' and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 9 - 2025-03-04 10:13:14 [101.18ms] */
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 `transaction`.`status` = 'END' and `payment_date` > '2025-03-03' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 10 - 2025-03-04 10:13:14 [43.99ms] */
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 `transaction`.`status` = 'END' and `payment_date` > '2025-03-03' and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 11 - 2025-03-04 10:13:15 [484.78ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 1 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-04' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 12 - 2025-03-04 10:13:16 [1241.17ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` inner join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` where `transaction`.`service_id` = 2 and `invoice`.`invoice_amount` <> 0.00 and `due_date` < '2025-03-04' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 13 - 2025-03-04 10:13:16 [0.29ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org
   Query 14 - 2025-03-04 10:13:16 [0.16ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/logout
   Query 1 - 2025-03-04 10:13:21 [1.42ms] */
select * from `users` where `id` = 1 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/logout
   Query 2 - 2025-03-04 10:13:21 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 1 - 2025-03-04 10:14:07 [1.9ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 2 - 2025-03-04 10:14:07 [1.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 3 - 2025-03-04 10:14:07 [0.61ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 4 - 2025-03-04 10:14:07 [0.6ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 5 - 2025-03-04 10:14:07 [0.59ms] */
select * from `vehicle` where `id` = 93214 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 6 - 2025-03-04 10:14:07 [0.6ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 93214 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 7 - 2025-03-04 10:14:07 [0.28ms] */
select * from `vehicle` where `id` = 93214 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 8 - 2025-03-04 10:14:07 [0.27ms] */
select * from `party_vehicle` where `is_owner` = 'Y' and `vehicle_id` = 93214 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 9 - 2025-03-04 10:14:07 [0.3ms] */
select * from `make` where `make`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 10 - 2025-03-04 10:14:07 [0.14ms] */
select * from `model` where `make_id` is null and `model`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 11 - 2025-03-04 10:14:07 [0.31ms] */
select * from `model` where `model`.`id` = 1396 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 12 - 2025-03-04 10:14:07 [0.24ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 13 - 2025-03-04 10:14:07 [0.23ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 14 - 2025-03-04 10:14:07 [0.31ms] */
select * from `party_vehicle` where `party_vehicle`.`vehicle_id` = 93214 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 15 - 2025-03-04 10:14:07 [0.15ms] */
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://testtra.puntlandgov.org/m/vehicle/93214
   Query 16 - 2025-03-04 10:14:07 [0.22ms] */
select * from `vehicle_type` where `vehicle_type`.`id` = 26 and `vehicle_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 17 - 2025-03-04 10:14:07 [0.23ms] */
select * from `vehicle_color` where `vehicle_color`.`id` = 50 and `vehicle_color`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 18 - 2025-03-04 10:14:07 [0.23ms] */
select * from `fuel_type` where `fuel_type`.`id` = 3 and `fuel_type`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 19 - 2025-03-04 10:14:07 [0.25ms] */
select * from `party_vehicle` where `vehicle_id` = 93214 and `party_vehicle`.`deleted_at` is null order by `updated_at` desc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 20 - 2025-03-04 10:14:07 [0.24ms] */
select * from `vehicle` where `vehicle`.`id` = 93214 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 21 - 2025-03-04 10:14:07 [0.14ms] */
select * from `model` where `model`.`id` = 1396 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 22 - 2025-03-04 10:14:07 [0.13ms] */
select * from `make` where `make`.`id` = 74 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 23 - 2025-03-04 10:14:07 [0.14ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 24 - 2025-03-04 10:14:07 [0.13ms] */
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://testtra.puntlandgov.org/m/vehicle/93214
   Query 25 - 2025-03-04 10:14:07 [0.3ms] */
select * from `party` where `party`.`id` = 59307 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 26 - 2025-03-04 10:14:07 [0.29ms] */
select * from `person` where `person`.`id` = 56862 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 27 - 2025-03-04 10:14:07 [0.31ms] */
select * from `transaction` where `transaction`.`id` = 224323 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 28 - 2025-03-04 10:14:07 [3.27ms] */
select `vehicle_tax`.* from `vehicle_tax` inner join `term` on `term`.`id` = `vehicle_tax`.`term_id` inner join `transaction` on `transaction`.`id` = `vehicle_tax`.`transaction_id` inner join `invoice` on `invoice`.`id` = `transaction`.`invoice_id` where `term`.`quarter` <> 0 and `vehicle_tax`.`vehicle_id` = 93214 and `vehicle_tax`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 29 - 2025-03-04 10:14:07 [0.29ms] */
select * from `term` where `term`.`id` = 97 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 30 - 2025-03-04 10:14:07 [0.28ms] */
select * from `vehicle` where `vehicle`.`id` = 93214 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 31 - 2025-03-04 10:14:07 [0.2ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 32 - 2025-03-04 10:14:07 [0.33ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 92912 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 33 - 2025-03-04 10:14:07 [0.2ms] */
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://testtra.puntlandgov.org/m/vehicle/93214
   Query 34 - 2025-03-04 10:14:07 [2.99ms] */
select * from `transaction` where `transaction`.`id` = 224576 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 35 - 2025-03-04 10:14:07 [0.33ms] */
select * from `party` where `party`.`id` = 59307 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 36 - 2025-03-04 10:14:07 [0.39ms] */
select * from `person` where `person`.`id` = 56862 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 37 - 2025-03-04 10:14:07 [0.46ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 38 - 2025-03-04 10:14:07 [0.52ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 39 - 2025-03-04 10:14:07 [0.45ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 8 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 40 - 2025-03-04 10:14:07 [0.3ms] */
select * from `roles` where `roles`.`id` = 8 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 41 - 2025-03-04 10:14:07 [0.34ms] */
select * from `term` where `term`.`id` = 98 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 42 - 2025-03-04 10:14:07 [0.26ms] */
select * from `vehicle` where `vehicle`.`id` = 93214 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 43 - 2025-03-04 10:14:07 [0.3ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 44 - 2025-03-04 10:14:07 [0.24ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 92912 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 45 - 2025-03-04 10:14:07 [0.21ms] */
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://testtra.puntlandgov.org/m/vehicle/93214
   Query 46 - 2025-03-04 10:14:07 [0.41ms] */
select * from `transaction` where `transaction`.`id` = 224577 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 47 - 2025-03-04 10:14:07 [0.22ms] */
select * from `party` where `party`.`id` = 59307 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 48 - 2025-03-04 10:14:07 [0.24ms] */
select * from `person` where `person`.`id` = 56862 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 49 - 2025-03-04 10:14:07 [0.23ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 50 - 2025-03-04 10:14:07 [0.21ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 51 - 2025-03-04 10:14:07 [0.32ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 52 - 2025-03-04 10:14:07 [0.35ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 53 - 2025-03-04 10:14:07 [0.33ms] */
select * from `term` where `term`.`id` = 99 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 54 - 2025-03-04 10:14:07 [0.23ms] */
select * from `vehicle` where `vehicle`.`id` = 93214 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 55 - 2025-03-04 10:14:07 [0.2ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 56 - 2025-03-04 10:14:07 [0.23ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 92912 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 57 - 2025-03-04 10:14:07 [0.21ms] */
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://testtra.puntlandgov.org/m/vehicle/93214
   Query 58 - 2025-03-04 10:14:07 [0.4ms] */
select * from `transaction` where `transaction`.`id` = 224578 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 59 - 2025-03-04 10:14:07 [0.13ms] */
select * from `party` where `party`.`id` = 59307 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 60 - 2025-03-04 10:14:07 [0.14ms] */
select * from `person` where `person`.`id` = 56862 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 61 - 2025-03-04 10:14:07 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 62 - 2025-03-04 10:14:07 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 63 - 2025-03-04 10:14:07 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 64 - 2025-03-04 10:14:07 [0.12ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 65 - 2025-03-04 10:14:07 [0.19ms] */
select * from `term` where `term`.`id` = 100 and `term`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 66 - 2025-03-04 10:14:07 [0.14ms] */
select * from `vehicle` where `vehicle`.`id` = 93214 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 67 - 2025-03-04 10:14:07 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 4 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 68 - 2025-03-04 10:14:07 [0.13ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 92912 and `party_vehicle`.`id` is not null and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 69 - 2025-03-04 10:14:07 [0.12ms] */
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://testtra.puntlandgov.org/m/vehicle/93214
   Query 70 - 2025-03-04 10:14:07 [0.22ms] */
select * from `transaction` where `transaction`.`id` = 224579 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 71 - 2025-03-04 10:14:07 [0.13ms] */
select * from `party` where `party`.`id` = 59307 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 72 - 2025-03-04 10:14:07 [0.14ms] */
select * from `person` where `person`.`id` = 56862 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 73 - 2025-03-04 10:14:07 [0.13ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 74 - 2025-03-04 10:14:07 [0.12ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 75 - 2025-03-04 10:14:07 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 6 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 76 - 2025-03-04 10:14:07 [0.12ms] */
select * from `roles` where `roles`.`id` = 5 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 77 - 2025-03-04 10:14:07 [0.14ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 78 - 2025-03-04 10:14:07 [0.52ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 79 - 2025-03-04 10:14:07 [0.34ms] */
select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` = 5 and `model_has_roles`.`model_type` = 'App\Models\User' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 80 - 2025-03-04 10:14:07 [0.27ms] */
select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` = 5 and `model_has_roles`.`model_type` = 'App\Models\User' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 81 - 2025-03-04 10:14:07 [0.51ms] */
select count(*) as aggregate from `transaction` inner join `service` on `service`.`id` = `transaction`.`service_id` inner join `workflow_definition` on `workflow_definition`.`id` = `transaction`.`current_workflow_state_id` where `transaction`.`vehicle_id` = 93214 and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `workflow_definition`.`role_id` = 5 and `deliver_district_id` = 37 and `status` != 'CANCELED' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 82 - 2025-03-04 10:14:07 [0.15ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 83 - 2025-03-04 10:14:07 [0.48ms] */
select * from `license_plate_number_change_history` where `vehicle_id` = 93214 and `license_plate_number_change_history`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 84 - 2025-03-04 10:14:07 [0.35ms] */
select * from `title_reprint_history` where `vehicle_id` = 93214 and `title_reprint_history`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 85 - 2025-03-04 10:14:07 [0.3ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/vehicle/93214
   Query 86 - 2025-03-04 10:14:07 [0.15ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=93214&model=Modules%5CVehicle%5CEntities%5CVehicle
   Query 1 - 2025-03-04 10:14:08 [1.43ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=93214&model=Modules%5CVehicle%5CEntities%5CVehicle
   Query 2 - 2025-03-04 10:14:08 [0.47ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=93214&model=Modules%5CVehicle%5CEntities%5CVehicle
   Query 3 - 2025-03-04 10:14:08 [0.35ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=93214&model=Modules%5CVehicle%5CEntities%5CVehicle
   Query 4 - 2025-03-04 10:14:08 [0.44ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/audit-details?audit_ids=93214&model=Modules%5CVehicle%5CEntities%5CVehicle
   Query 5 - 2025-03-04 10:14:08 [8.88ms] */
SELECT event,auditable_id,auditable_type, old_values, new_values,a.created_at,a.updated_at, first_name,last_name
                    FROM audits a 
                    left join users ur on a.user_id = ur.id 
                    left join vehicle v on a.auditable_id = v.id 
                    where auditable_id = 93214 and a.auditable_type = 'Modules\\Vehicle\\Entities\\Vehicle' ORDER BY a.id DESC
                    ;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw/tax?224577=
   Query 1 - 2025-03-04 10:14:12 [1.34ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw/tax?224577=
   Query 2 - 2025-03-04 10:14:12 [0.47ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw/tax?224577=
   Query 3 - 2025-03-04 10:14:12 [0.32ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw/tax?224577=
   Query 4 - 2025-03-04 10:14:12 [0.59ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/w/wkflw/tax?224577=
   Query 5 - 2025-03-04 10:14:12 [0.54ms] */
select * from `transaction` where `transaction`.`id` = 'tax' and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 1 - 2025-03-04 10:14:17 [3.29ms] */
select * from `users` where `id` = 5 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 2 - 2025-03-04 10:14:17 [0.55ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 3 - 2025-03-04 10:14:17 [0.34ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 4 - 2025-03-04 10:14:17 [1.09ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 5 - 2025-03-04 10:14:17 [0.76ms] */
select * from `payment_method` where `name` = 'Cash' and `payment_method`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 6 - 2025-03-04 10:14:17 [0.56ms] */
select * from `invoice` where `id` = 209559 and `invoice`.`invoice_amount` <> 0.00 and `invoice`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 7 - 2025-03-04 10:14:17 [0.39ms] */
select * from `transaction` where `transaction`.`id` in (224577) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 8 - 2025-03-04 10:14:17 [0.52ms] */
select * from `vehicle` where `vehicle`.`id` in (93214) and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 9 - 2025-03-04 10:14:17 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 10 - 2025-03-04 10:14:17 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 11 - 2025-03-04 10:14:17 [0.61ms] */
select * from `service` where `service`.`id` in (2) and `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 12 - 2025-03-04 10:14:17 [0.55ms] */
select * from `party` where `party`.`id` in (59307) and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 13 - 2025-03-04 10:14:17 [0.62ms] */
select * from `address` where `address`.`id` in (59307) and `address`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 14 - 2025-03-04 10:14:17 [0.33ms] */
select * from `party` where `party`.`id` = 59307 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 15 - 2025-03-04 10:14:17 [0.17ms] */
select * from `person` where `person`.`id` = 56862 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 16 - 2025-03-04 10:14:17 [0.35ms] */
select * from `address` where `address`.`id` = 59307 and `address`.`id` is not null and `address`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 17 - 2025-03-04 10:14:17 [0.56ms] */
select * from `invoice_item` where `invoice_item`.`invoice_id` = 209559 and `invoice_item`.`invoice_id` is not null and `invoice_item`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 18 - 2025-03-04 10:14:17 [0.46ms] */
select `Payment`.*, `invoice_payment`.`invoice_id` as `pivot_invoice_id`, `invoice_payment`.`payment_id` as `pivot_payment_id`, `invoice_payment`.`created_at` as `pivot_created_at`, `invoice_payment`.`updated_at` as `pivot_updated_at` from `Payment` inner join `invoice_payment` on `Payment`.`id` = `invoice_payment`.`payment_id` where `invoice_payment`.`invoice_id` = 209559 and `Payment`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 19 - 2025-03-04 10:14:17 [0.23ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/trns/i/209559
   Query 20 - 2025-03-04 10:14:17 [0.15ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:14:55 [4.11ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:14:55 [0.3ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:14:55 [1.5ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:14:55 [11.81ms] */
update `userprofiles` set `login_count` = 3760, `last_login` = '2025-03-04 10:14:55', `userprofiles`.`updated_at` = '2025-03-04 10:14:55' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:14:55 [0.42ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:14:55 [0.47ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:14:55 [0.92ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:14:55 [0.31ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:14:55 [0.18ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:14:55 [0.4ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:14:55 [0.29ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:14:55 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:14:55 [3.05ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17', 149, 5, '[]', 0, '2025-03-04 10:14:55', '2025-03-04 10:14:55', '2026-03-04 10:14:55');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:14:55 [0.33ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:14:55 [3.82ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:14:56 [1.61ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:14:56 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:14:56 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:14:56 [0.31ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:14:56 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:14:56 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:14:56 [1.61ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'WU863' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:14:56 [0.28ms] */
select * from `vehicle` where `id` = 99422 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:14:56 [0.43ms] */
select * from `party_vehicle` where `vehicle_id` = 99422 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:14:56 [1.38ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:14:56 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:14:56 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:14:56 [0.21ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:14:56 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:14:56 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:14:56 [1.13ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'OD166' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:14:56 [0.26ms] */
select * from `vehicle` where `id` = 91400 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:14:56 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 91400 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:14:56 [1.35ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:14:56 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:14:56 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:14:56 [0.16ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:14:56 [0.12ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:14:56 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:14:56 [0.71ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'IQ091' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:14:56 [0.22ms] */
select * from `vehicle` where `id` = 97009 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:14:56 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 97009 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:14:56 [1.43ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:14:56 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:14:56 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:14:56 [0.21ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:14:56 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:14:56 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:14:56 [1.67ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'YN342' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:14:56 [0.27ms] */
select * from `vehicle` where `id` = 94477 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:14:56 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 94477 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:14:56 [1.42ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:14:56 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:14:56 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:14:56 [0.17ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:14:56 [0.13ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:14:56 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:14:56 [0.75ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'VU688' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:14:56 [0.25ms] */
select * from `vehicle` where `id` = 93500 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:14:56 [0.24ms] */
select * from `party_vehicle` where `vehicle_id` = 93500 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:14:56 [1.87ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:14:56 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:14:56 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:14:56 [0.27ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:14:56 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:14:56 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:14:56 [1.11ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'RT036' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:14:56 [0.41ms] */
select * from `vehicle` where `id` = 93353 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:14:56 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 93353 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:14:56 [2.05ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:14:56 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:14:56 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:14:56 [0.34ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:14:56 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:14:56 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:14:56 [0.8ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'UT106' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:14:56 [0.22ms] */
select * from `vehicle` where `id` = 93214 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:14:56 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 93214 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:14:57 [2.08ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:14:57 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:14:57 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:14:57 [0.27ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:14:57 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:14:57 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:14:57 [1.5ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'IF124' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:14:57 [0.35ms] */
select * from `vehicle` where `id` = 92210 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:14:57 [0.39ms] */
select * from `party_vehicle` where `vehicle_id` = 92210 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:14:57 [1.43ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:14:57 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:14:57 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:14:57 [0.2ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:14:57 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:14:57 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:14:57 [1.83ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'MR568' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:14:57 [0.29ms] */
select * from `vehicle` where `id` = 91229 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:14:57 [0.3ms] */
select * from `party_vehicle` where `vehicle_id` = 91229 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:14:57 [1.44ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:14:57 [0.17ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:14:57 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:14:57 [0.19ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:14:57 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:14:57 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:14:57 [1.48ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'WJ461' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:14:57 [0.31ms] */
select * from `vehicle` where `id` = 91182 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:14:57 [0.32ms] */
select * from `party_vehicle` where `vehicle_id` = 91182 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:14:57 [1.33ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:14:57 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:14:57 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:14:57 [0.2ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:14:57 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '3e55203173241df6b78cc0cc4bdf3f3fb8a2bc26c80faf2bac80a4dd7e7059c12fb33a909f442b17' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:14:57 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:14:57 [1.48ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'TR218' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:14:57 [0.28ms] */
select * from `vehicle` where `id` = 91020 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:14:57 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 91020 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:15:41 [1.48ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:15:41 [0.28ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:15:41 [1.38ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:15:41 [4.53ms] */
update `userprofiles` set `login_count` = 3761, `last_login` = '2025-03-04 10:15:41', `userprofiles`.`updated_at` = '2025-03-04 10:15:41' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:15:41 [0.19ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:15:41 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:15:41 [0.17ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:15:41 [0.14ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:15:41 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:15:41 [0.15ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:15:41 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:15:41 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:15:41 [4.53ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('705a0610b931a4d09d62f170c4612a07a11c42b0d140fbee3fb932b2b4a5a20a17d47425f1a0b4eb', 149, 5, '[]', 0, '2025-03-04 10:15:41', '2025-03-04 10:15:41', '2026-03-04 10:15:41');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:15:41 [0.86ms] */
select * from `oauth_access_tokens` where `id` = '705a0610b931a4d09d62f170c4612a07a11c42b0d140fbee3fb932b2b4a5a20a17d47425f1a0b4eb' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:15:41 [3.46ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '705a0610b931a4d09d62f170c4612a07a11c42b0d140fbee3fb932b2b4a5a20a17d47425f1a0b4eb';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:15:41 [2.06ms] */
select * from `oauth_access_tokens` where `id` = '705a0610b931a4d09d62f170c4612a07a11c42b0d140fbee3fb932b2b4a5a20a17d47425f1a0b4eb' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:15:41 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '705a0610b931a4d09d62f170c4612a07a11c42b0d140fbee3fb932b2b4a5a20a17d47425f1a0b4eb' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:15:41 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:15:41 [0.19ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:15:41 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '705a0610b931a4d09d62f170c4612a07a11c42b0d140fbee3fb932b2b4a5a20a17d47425f1a0b4eb' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:15:41 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:15:41 [6.94ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `vehicle`.`license_plate` = 'IQ091' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:16:12 [2.23ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:16:12 [0.17ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:16:12 [0.99ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:16:12 [6.07ms] */
update `userprofiles` set `login_count` = 3762, `last_login` = '2025-03-04 10:16:12', `userprofiles`.`updated_at` = '2025-03-04 10:16:12' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:16:12 [0.27ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:16:12 [0.57ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:16:12 [0.25ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:16:12 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:16:12 [0.18ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:16:12 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:16:12 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:16:12 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:16:12 [4.2ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('0cc224f573cbb0fd3fdeb6c3e6a3252f693efb90f91a529a036a419b1991000a88ba0f12928f0f6e', 149, 5, '[]', 0, '2025-03-04 10:16:12', '2025-03-04 10:16:12', '2026-03-04 10:16:12');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:16:12 [0.37ms] */
select * from `oauth_access_tokens` where `id` = '0cc224f573cbb0fd3fdeb6c3e6a3252f693efb90f91a529a036a419b1991000a88ba0f12928f0f6e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:16:12 [3.68ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '0cc224f573cbb0fd3fdeb6c3e6a3252f693efb90f91a529a036a419b1991000a88ba0f12928f0f6e';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:16:29 [1.69ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:16:29 [0.26ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:16:29 [1.03ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:16:29 [11.26ms] */
update `userprofiles` set `login_count` = 3763, `last_login` = '2025-03-04 10:16:29', `userprofiles`.`updated_at` = '2025-03-04 10:16:29' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:16:29 [0.4ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:16:29 [0.7ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:16:29 [0.33ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:16:29 [0.21ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:16:29 [0.2ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:16:29 [0.24ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:16:29 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:16:29 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:16:29 [3.79ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('49386493bec0112ec35a1ea74a1c477a8413cb1f4d0db3876bcc64ae3a5678ff61d55e59c184f710', 149, 5, '[]', 0, '2025-03-04 10:16:29', '2025-03-04 10:16:29', '2026-03-04 10:16:29');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:16:29 [0.45ms] */
select * from `oauth_access_tokens` where `id` = '49386493bec0112ec35a1ea74a1c477a8413cb1f4d0db3876bcc64ae3a5678ff61d55e59c184f710' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:16:29 [3.79ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '49386493bec0112ec35a1ea74a1c477a8413cb1f4d0db3876bcc64ae3a5678ff61d55e59c184f710';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 1 - 2025-03-04 10:16:29 [1.47ms] */
select * from `oauth_access_tokens` where `id` = '49386493bec0112ec35a1ea74a1c477a8413cb1f4d0db3876bcc64ae3a5678ff61d55e59c184f710' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 2 - 2025-03-04 10:16:29 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '49386493bec0112ec35a1ea74a1c477a8413cb1f4d0db3876bcc64ae3a5678ff61d55e59c184f710' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 3 - 2025-03-04 10:16:29 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 4 - 2025-03-04 10:16:29 [0.16ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 5 - 2025-03-04 10:16:29 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '49386493bec0112ec35a1ea74a1c477a8413cb1f4d0db3876bcc64ae3a5678ff61d55e59c184f710' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 6 - 2025-03-04 10:16:29 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 7 - 2025-03-04 10:16:29 [1.19ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, `transaction`.`party_id` as `customer_id`, `transaction`.`vehicle_id`, `invoice`.`id` as `invoice_id`, `invoice`.`invoice_number`, `invoice`.`total_invoice_amount` as `total_tax_amount`, `invoice`.`status` as `invoice_status`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `district`.`name` as `deliver_district`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `district` on `transaction`.`deliver_district_id` = `district`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`id` = 332818 and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 8 - 2025-03-04 10:16:29 [1.18ms] */
select `vehicle`.`id` as `vehicle_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, `party_vehicle`.`status`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` where `vehicle`.`id` = 97009 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transaction
   Query 9 - 2025-03-04 10:16:29 [0.83ms] */
select `party`.`id` as `customer_id`, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as contact, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `party`.`partyable_type` as `customer_type`, `person`.`can_vote`, `person`.`occupation`, `person`.`gender`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.father_first_name, " ", person.father_second_name, " ", person.father_third_name, " ", person.father_fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS family_head, `person`.`place_of_birth`, `person`.`date_of_birth`, `district`.`name` as `district`, `region`.`name` as `region`, CONCAT(contact_person.first_name, " ", contact_person.second_name,
                " ", contact_person.third_name, " ", contact_person.fourth_name) as contact_person, `company_type`.`name` as `business_type`, CASE
                WHEN contact_party.phone_number_2 IS NOT NULL THEN CONCAT(contact_party.phone_number_1," / ",contact_party.phone_number_2)
                ELSE contact_party.phone_number_1 END as contact_person_mobile, `company`.`registration_date` as `company_registration_date` from `party` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join (`company` left join `party` as `contact_party` on `company`.`contact_party_id` = `contact_party`.`id` left join `person` as `contact_person` on `contact_party`.`partyable_id` = `contact_person`.`id` left join `company_type` on `company`.`company_type_id` = `company_type`.`id`) on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `address` on `party`.`address_id` = `address`.`id` left join `district` on `address`.`district_id` = `district`.`id` left join `region` on `district`.`region_id` = `region`.`id` where `party`.`id` = 59307 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:17:23 [1.71ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:17:23 [0.26ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:17:23 [0.7ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:17:23 [11.54ms] */
update `userprofiles` set `login_count` = 3764, `last_login` = '2025-03-04 10:17:23', `userprofiles`.`updated_at` = '2025-03-04 10:17:23' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:17:23 [0.35ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:17:23 [0.71ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:17:23 [0.33ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:17:23 [0.28ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:17:23 [0.28ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:17:23 [0.3ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:17:23 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:17:23 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:17:23 [4.31ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('58a90b9f761c0e856a5f14b70811bb5be2eb36ea7d2112572998d623ef252293a7090d4e42734fe8', 149, 5, '[]', 0, '2025-03-04 10:17:23', '2025-03-04 10:17:23', '2026-03-04 10:17:23');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:17:24 [0.74ms] */
select * from `oauth_access_tokens` where `id` = '58a90b9f761c0e856a5f14b70811bb5be2eb36ea7d2112572998d623ef252293a7090d4e42734fe8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:17:24 [3.84ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '58a90b9f761c0e856a5f14b70811bb5be2eb36ea7d2112572998d623ef252293a7090d4e42734fe8';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:17:32 [2.23ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:17:32 [0.21ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:17:32 [1.02ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:17:32 [6.31ms] */
update `userprofiles` set `login_count` = 3765, `last_login` = '2025-03-04 10:17:32', `userprofiles`.`updated_at` = '2025-03-04 10:17:32' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:17:32 [0.31ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:17:32 [0.7ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:17:32 [0.25ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:17:32 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:17:32 [0.2ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:17:32 [0.22ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:17:32 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:17:32 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:17:32 [4.94ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('81ecfa9c6562eae7c8ab5fbc569df88b37ff8e1c7d733d44b83e99424bac9d0d27b38369d2a6b9eb', 149, 5, '[]', 0, '2025-03-04 10:17:32', '2025-03-04 10:17:32', '2026-03-04 10:17:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:17:32 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '81ecfa9c6562eae7c8ab5fbc569df88b37ff8e1c7d733d44b83e99424bac9d0d27b38369d2a6b9eb' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:17:32 [3.5ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '81ecfa9c6562eae7c8ab5fbc569df88b37ff8e1c7d733d44b83e99424bac9d0d27b38369d2a6b9eb';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:17:49 [1.45ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:17:49 [0.16ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:17:49 [0.58ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:17:49 [6.08ms] */
update `userprofiles` set `login_count` = 3766, `last_login` = '2025-03-04 10:17:49', `userprofiles`.`updated_at` = '2025-03-04 10:17:49' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:17:49 [0.16ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:17:49 [0.38ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:17:49 [0.16ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:17:49 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:17:49 [0.11ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:17:49 [0.16ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:17:49 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:17:49 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:17:49 [6.54ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('cd7ae01a5ad5389dd60f45e56d92830cefb17adae57dfab858f756f2122d09874cc9fe5fe17fe687', 149, 5, '[]', 0, '2025-03-04 10:17:49', '2025-03-04 10:17:49', '2026-03-04 10:17:49');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:17:49 [0.36ms] */
select * from `oauth_access_tokens` where `id` = 'cd7ae01a5ad5389dd60f45e56d92830cefb17adae57dfab858f756f2122d09874cc9fe5fe17fe687' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:17:49 [2.93ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'cd7ae01a5ad5389dd60f45e56d92830cefb17adae57dfab858f756f2122d09874cc9fe5fe17fe687';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:17:56 [1.93ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:17:56 [0.46ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:17:56 [0.7ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:17:56 [4.89ms] */
update `userprofiles` set `login_count` = 3767, `last_login` = '2025-03-04 10:17:56', `userprofiles`.`updated_at` = '2025-03-04 10:17:56' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:17:56 [0.21ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:17:56 [0.53ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:17:56 [0.2ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:17:56 [0.19ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:17:56 [0.16ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:17:56 [0.22ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:17:56 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:17:56 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:17:56 [5.22ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('4a6ed6ae5d8c3bacbbf714bd7ca4b490d65d367480c4a17739afc11ed1964c17dcd9ad834a84bf19', 149, 5, '[]', 0, '2025-03-04 10:17:56', '2025-03-04 10:17:56', '2026-03-04 10:17:56');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:17:56 [0.36ms] */
select * from `oauth_access_tokens` where `id` = '4a6ed6ae5d8c3bacbbf714bd7ca4b490d65d367480c4a17739afc11ed1964c17dcd9ad834a84bf19' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:17:56 [3.63ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '4a6ed6ae5d8c3bacbbf714bd7ca4b490d65d367480c4a17739afc11ed1964c17dcd9ad834a84bf19';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:20:17 [1.47ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:20:17 [0.29ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:20:17 [1.51ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:20:17 [6.4ms] */
update `userprofiles` set `login_count` = 3768, `last_login` = '2025-03-04 10:20:17', `userprofiles`.`updated_at` = '2025-03-04 10:20:17' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:20:17 [0.25ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:20:17 [0.57ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:20:17 [0.25ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:20:17 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:20:17 [0.11ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:20:17 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:20:17 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:20:17 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:20:17 [4.41ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('74781de5dbcbefcfdb8813f6e5abd8881543af702d20f5db97ca5ab930ec0b073328378641911742', 149, 5, '[]', 0, '2025-03-04 10:20:17', '2025-03-04 10:20:17', '2026-03-04 10:20:17');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:20:17 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '74781de5dbcbefcfdb8813f6e5abd8881543af702d20f5db97ca5ab930ec0b073328378641911742' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:20:17 [3.52ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '74781de5dbcbefcfdb8813f6e5abd8881543af702d20f5db97ca5ab930ec0b073328378641911742';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:21:10 [1.66ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:21:10 [0.27ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:21:10 [1.11ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:21:10 [7.11ms] */
update `userprofiles` set `login_count` = 3769, `last_login` = '2025-03-04 10:21:10', `userprofiles`.`updated_at` = '2025-03-04 10:21:10' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:21:10 [0.25ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:21:10 [0.61ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:21:10 [0.27ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:21:10 [0.3ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:21:10 [0.26ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:21:10 [0.25ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:21:10 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:21:10 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:21:10 [6.14ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('404df6286b54efcf9a4c7d3f63a6a8c15f447ebc2798cfc26ee6a36fbda1b74f6692915697993bbc', 149, 5, '[]', 0, '2025-03-04 10:21:10', '2025-03-04 10:21:10', '2026-03-04 10:21:10');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:21:10 [0.57ms] */
select * from `oauth_access_tokens` where `id` = '404df6286b54efcf9a4c7d3f63a6a8c15f447ebc2798cfc26ee6a36fbda1b74f6692915697993bbc' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:21:10 [4.15ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '404df6286b54efcf9a4c7d3f63a6a8c15f447ebc2798cfc26ee6a36fbda1b74f6692915697993bbc';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:21:25 [1.47ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:21:25 [0.16ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:21:25 [0.49ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:21:25 [6.42ms] */
update `userprofiles` set `login_count` = 3770, `last_login` = '2025-03-04 10:21:25', `userprofiles`.`updated_at` = '2025-03-04 10:21:25' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:21:25 [0.24ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:21:25 [0.55ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:21:25 [0.26ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:21:25 [0.14ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:21:25 [0.11ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:21:25 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:21:25 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:21:25 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:21:25 [3.41ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('4059bb4c98fe511db6ee656985925c1f1f8eca1393b265daebe8d90bf66243ac41e364a10f9a5aab', 149, 5, '[]', 0, '2025-03-04 10:21:25', '2025-03-04 10:21:25', '2026-03-04 10:21:25');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:21:25 [0.3ms] */
select * from `oauth_access_tokens` where `id` = '4059bb4c98fe511db6ee656985925c1f1f8eca1393b265daebe8d90bf66243ac41e364a10f9a5aab' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:21:25 [7.71ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '4059bb4c98fe511db6ee656985925c1f1f8eca1393b265daebe8d90bf66243ac41e364a10f9a5aab';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:22:51 [2.32ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:22:51 [0.31ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:22:51 [0.85ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:22:51 [11.67ms] */
update `userprofiles` set `login_count` = 3771, `last_login` = '2025-03-04 10:22:51', `userprofiles`.`updated_at` = '2025-03-04 10:22:51' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:22:51 [0.4ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:22:51 [0.76ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:22:51 [0.31ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:22:51 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:22:51 [0.13ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:22:51 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:22:51 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:22:51 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:22:51 [4.43ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('47dd9777dd485be3fa9e5a6a2405eb37c100a2c11516f5cbc6b1cfedec3ffdc50c1c0723c401c952', 149, 5, '[]', 0, '2025-03-04 10:22:51', '2025-03-04 10:22:51', '2026-03-04 10:22:51');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:22:51 [0.38ms] */
select * from `oauth_access_tokens` where `id` = '47dd9777dd485be3fa9e5a6a2405eb37c100a2c11516f5cbc6b1cfedec3ffdc50c1c0723c401c952' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:22:51 [3.47ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '47dd9777dd485be3fa9e5a6a2405eb37c100a2c11516f5cbc6b1cfedec3ffdc50c1c0723c401c952';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:22:51 [1.64ms] */
select * from `oauth_access_tokens` where `id` = '47dd9777dd485be3fa9e5a6a2405eb37c100a2c11516f5cbc6b1cfedec3ffdc50c1c0723c401c952' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:22:51 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '47dd9777dd485be3fa9e5a6a2405eb37c100a2c11516f5cbc6b1cfedec3ffdc50c1c0723c401c952' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:22:51 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:22:51 [0.17ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:22:51 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '47dd9777dd485be3fa9e5a6a2405eb37c100a2c11516f5cbc6b1cfedec3ffdc50c1c0723c401c952' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:22:51 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:22:51 [1.99ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 5930 and `vehicle`.`license_plate` = 'IQ091' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:23:52 [2.24ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:23:52 [0.16ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:23:52 [0.49ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:23:52 [9.23ms] */
update `userprofiles` set `login_count` = 3772, `last_login` = '2025-03-04 10:23:52', `userprofiles`.`updated_at` = '2025-03-04 10:23:52' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:23:52 [0.24ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:23:52 [0.59ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:23:52 [0.27ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:23:52 [0.21ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:23:52 [0.17ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:23:52 [0.21ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:23:52 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:23:52 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:23:52 [3.42ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('7bdbfc26e8ac39951ae295cfcbdb2dccd7add0a67cb7fc9487b87dd6260a2ee03801e58492533d74', 149, 5, '[]', 0, '2025-03-04 10:23:52', '2025-03-04 10:23:52', '2026-03-04 10:23:52');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:23:52 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '7bdbfc26e8ac39951ae295cfcbdb2dccd7add0a67cb7fc9487b87dd6260a2ee03801e58492533d74' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:23:52 [2.91ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '7bdbfc26e8ac39951ae295cfcbdb2dccd7add0a67cb7fc9487b87dd6260a2ee03801e58492533d74';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:23:57 [1.7ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:23:57 [0.27ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:23:57 [0.6ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:23:57 [3.74ms] */
update `userprofiles` set `login_count` = 3773, `last_login` = '2025-03-04 10:23:57', `userprofiles`.`updated_at` = '2025-03-04 10:23:57' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:23:57 [0.57ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:23:57 [0.92ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:23:57 [0.48ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:23:57 [0.3ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:23:57 [0.26ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:23:57 [0.23ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:23:57 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:23:57 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:23:57 [3.7ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('df8a4b71102232358c6fc9e54aead3fd55d1a0116529cf38b01a1c091cac08121b0e024512b513ec', 149, 5, '[]', 0, '2025-03-04 10:23:57', '2025-03-04 10:23:57', '2026-03-04 10:23:57');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:23:57 [0.73ms] */
select * from `oauth_access_tokens` where `id` = 'df8a4b71102232358c6fc9e54aead3fd55d1a0116529cf38b01a1c091cac08121b0e024512b513ec' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:23:57 [3.26ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'df8a4b71102232358c6fc9e54aead3fd55d1a0116529cf38b01a1c091cac08121b0e024512b513ec';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:23:57 [1.79ms] */
select * from `oauth_access_tokens` where `id` = 'df8a4b71102232358c6fc9e54aead3fd55d1a0116529cf38b01a1c091cac08121b0e024512b513ec' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:23:57 [0.2ms] */
select * from `oauth_access_tokens` where `id` = 'df8a4b71102232358c6fc9e54aead3fd55d1a0116529cf38b01a1c091cac08121b0e024512b513ec' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:23:57 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:23:57 [0.22ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:23:57 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'df8a4b71102232358c6fc9e54aead3fd55d1a0116529cf38b01a1c091cac08121b0e024512b513ec' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:23:57 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:23:57 [1.87ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `vehicle`.`license_plate` = 'TR218' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:25:46 [1.45ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:25:46 [0.19ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:25:46 [1.2ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:25:46 [15.04ms] */
update `userprofiles` set `login_count` = 3774, `last_login` = '2025-03-04 10:25:46', `userprofiles`.`updated_at` = '2025-03-04 10:25:46' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:25:46 [0.33ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:25:46 [0.73ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:25:46 [0.34ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:25:46 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:25:46 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:25:46 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:25:46 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:25:46 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:25:46 [3.24ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('272d66c8a1d7b126f684be4a9cf603eedccc7f9b11e25aeed9625fa5ef2f7c238e9936b525ef036a', 149, 5, '[]', 0, '2025-03-04 10:25:46', '2025-03-04 10:25:46', '2026-03-04 10:25:46');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:25:46 [0.37ms] */
select * from `oauth_access_tokens` where `id` = '272d66c8a1d7b126f684be4a9cf603eedccc7f9b11e25aeed9625fa5ef2f7c238e9936b525ef036a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:25:46 [3.38ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '272d66c8a1d7b126f684be4a9cf603eedccc7f9b11e25aeed9625fa5ef2f7c238e9936b525ef036a';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:25:46 [1.66ms] */
select * from `oauth_access_tokens` where `id` = '272d66c8a1d7b126f684be4a9cf603eedccc7f9b11e25aeed9625fa5ef2f7c238e9936b525ef036a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:25:46 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '272d66c8a1d7b126f684be4a9cf603eedccc7f9b11e25aeed9625fa5ef2f7c238e9936b525ef036a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:25:46 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:25:46 [0.17ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:25:46 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '272d66c8a1d7b126f684be4a9cf603eedccc7f9b11e25aeed9625fa5ef2f7c238e9936b525ef036a' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:25:46 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:25:46 [0.37ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `vehicle`.`license_plate` = 'TR218' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:25:58 [1.6ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:25:58 [0.21ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:25:58 [2.44ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:25:58 [7.16ms] */
update `userprofiles` set `login_count` = 3775, `last_login` = '2025-03-04 10:25:58', `userprofiles`.`updated_at` = '2025-03-04 10:25:58' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:25:58 [0.28ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:25:58 [0.59ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:25:58 [0.26ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:25:58 [0.18ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:25:58 [0.15ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:25:58 [0.17ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:25:58 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:25:58 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:25:58 [8.37ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('01f2b43fd7354faa15fd6b02972bd24dbfe10a1612af3482ec40d17893a966d2ea5fd7366d998889', 149, 5, '[]', 0, '2025-03-04 10:25:58', '2025-03-04 10:25:58', '2026-03-04 10:25:58');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:25:58 [0.65ms] */
select * from `oauth_access_tokens` where `id` = '01f2b43fd7354faa15fd6b02972bd24dbfe10a1612af3482ec40d17893a966d2ea5fd7366d998889' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:25:58 [3.38ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '01f2b43fd7354faa15fd6b02972bd24dbfe10a1612af3482ec40d17893a966d2ea5fd7366d998889';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:25:58 [1.84ms] */
select * from `oauth_access_tokens` where `id` = '01f2b43fd7354faa15fd6b02972bd24dbfe10a1612af3482ec40d17893a966d2ea5fd7366d998889' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:25:58 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '01f2b43fd7354faa15fd6b02972bd24dbfe10a1612af3482ec40d17893a966d2ea5fd7366d998889' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:25:58 [0.21ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:25:58 [0.21ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:25:58 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '01f2b43fd7354faa15fd6b02972bd24dbfe10a1612af3482ec40d17893a966d2ea5fd7366d998889' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:25:58 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:25:58 [0.41ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `vehicle`.`license_plate` = 'TR218' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:26:17 [1.44ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:26:17 [0.16ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:26:17 [0.53ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:26:17 [3.08ms] */
update `userprofiles` set `login_count` = 3776, `last_login` = '2025-03-04 10:26:17', `userprofiles`.`updated_at` = '2025-03-04 10:26:17' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:26:17 [0.16ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:26:17 [0.4ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:26:17 [0.16ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:26:17 [0.23ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:26:17 [0.17ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:26:17 [0.22ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:26:17 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:26:17 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:26:17 [3.41ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('1958087d1a53104344f63afd2ec180c3ce90ed11482e05cf66b293d9319ca899dfba2cd8a947388f', 149, 5, '[]', 0, '2025-03-04 10:26:17', '2025-03-04 10:26:17', '2026-03-04 10:26:17');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:26:17 [0.49ms] */
select * from `oauth_access_tokens` where `id` = '1958087d1a53104344f63afd2ec180c3ce90ed11482e05cf66b293d9319ca899dfba2cd8a947388f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:26:17 [3.24ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '1958087d1a53104344f63afd2ec180c3ce90ed11482e05cf66b293d9319ca899dfba2cd8a947388f';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:26:17 [2.63ms] */
select * from `oauth_access_tokens` where `id` = '1958087d1a53104344f63afd2ec180c3ce90ed11482e05cf66b293d9319ca899dfba2cd8a947388f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:26:17 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '1958087d1a53104344f63afd2ec180c3ce90ed11482e05cf66b293d9319ca899dfba2cd8a947388f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:26:17 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:26:17 [0.27ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:26:17 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '1958087d1a53104344f63afd2ec180c3ce90ed11482e05cf66b293d9319ca899dfba2cd8a947388f' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:26:17 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:26:17 [0.47ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `vehicle`.`license_plate` = 'TR218' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:26:25 [1.43ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:26:25 [0.17ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:26:25 [0.48ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:26:25 [11.61ms] */
update `userprofiles` set `login_count` = 3777, `last_login` = '2025-03-04 10:26:25', `userprofiles`.`updated_at` = '2025-03-04 10:26:25' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:26:25 [0.35ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:26:25 [0.58ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:26:25 [0.41ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:26:25 [0.24ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:26:25 [0.23ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:26:25 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:26:25 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:26:25 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:26:25 [3.46ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('6ff90d68142eea7c71d37dfc52f16f96cc5285aa235adf7cbd1b8926ba6b7adc0baf8044ea10a906', 149, 5, '[]', 0, '2025-03-04 10:26:25', '2025-03-04 10:26:25', '2026-03-04 10:26:25');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:26:25 [0.27ms] */
select * from `oauth_access_tokens` where `id` = '6ff90d68142eea7c71d37dfc52f16f96cc5285aa235adf7cbd1b8926ba6b7adc0baf8044ea10a906' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:26:25 [3ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '6ff90d68142eea7c71d37dfc52f16f96cc5285aa235adf7cbd1b8926ba6b7adc0baf8044ea10a906';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:26:25 [1.66ms] */
select * from `oauth_access_tokens` where `id` = '6ff90d68142eea7c71d37dfc52f16f96cc5285aa235adf7cbd1b8926ba6b7adc0baf8044ea10a906' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:26:25 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '6ff90d68142eea7c71d37dfc52f16f96cc5285aa235adf7cbd1b8926ba6b7adc0baf8044ea10a906' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:26:25 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:26:25 [0.18ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:26:25 [0.16ms] */
select * from `oauth_access_tokens` where `id` = '6ff90d68142eea7c71d37dfc52f16f96cc5285aa235adf7cbd1b8926ba6b7adc0baf8044ea10a906' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:26:25 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:26:25 [0.42ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `vehicle`.`license_plate` = 'TR218' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:28:08 [1.39ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:28:08 [0.24ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:28:08 [0.61ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:28:08 [6.73ms] */
update `userprofiles` set `login_count` = 3778, `last_login` = '2025-03-04 10:28:08', `userprofiles`.`updated_at` = '2025-03-04 10:28:08' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:28:08 [0.2ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:28:08 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:28:08 [0.28ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:28:08 [0.2ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:28:08 [0.15ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:28:08 [0.15ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:28:08 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:28:08 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:28:08 [3.81ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('d735ccb5c44b837418941d9b3f7fd13a59902a7223013558fed744fce867daea29ae2c6ef698a8e1', 149, 5, '[]', 0, '2025-03-04 10:28:08', '2025-03-04 10:28:08', '2026-03-04 10:28:08');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:28:08 [0.3ms] */
select * from `oauth_access_tokens` where `id` = 'd735ccb5c44b837418941d9b3f7fd13a59902a7223013558fed744fce867daea29ae2c6ef698a8e1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:28:08 [3.03ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'd735ccb5c44b837418941d9b3f7fd13a59902a7223013558fed744fce867daea29ae2c6ef698a8e1';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:28:08 [1.58ms] */
select * from `oauth_access_tokens` where `id` = 'd735ccb5c44b837418941d9b3f7fd13a59902a7223013558fed744fce867daea29ae2c6ef698a8e1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:28:08 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'd735ccb5c44b837418941d9b3f7fd13a59902a7223013558fed744fce867daea29ae2c6ef698a8e1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:28:08 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:28:08 [0.17ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:28:08 [0.14ms] */
select * from `oauth_access_tokens` where `id` = 'd735ccb5c44b837418941d9b3f7fd13a59902a7223013558fed744fce867daea29ae2c6ef698a8e1' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:28:08 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:28:08 [13.77ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:28:26 [1.5ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:28:27 [0.32ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:28:27 [0.51ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:28:27 [5.82ms] */
update `userprofiles` set `login_count` = 3779, `last_login` = '2025-03-04 10:28:27', `userprofiles`.`updated_at` = '2025-03-04 10:28:27' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:28:27 [0.24ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:28:27 [0.42ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:28:27 [0.17ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:28:27 [0.13ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:28:27 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:28:27 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:28:27 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:28:27 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:28:27 [3.27ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('666b1cfab4b1f2fcad48454d2dd141452bd7c701d4600df17c1c2bf1d52d0188c4b092d8d75bb73b', 149, 5, '[]', 0, '2025-03-04 10:28:27', '2025-03-04 10:28:27', '2026-03-04 10:28:27');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:28:27 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '666b1cfab4b1f2fcad48454d2dd141452bd7c701d4600df17c1c2bf1d52d0188c4b092d8d75bb73b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:28:27 [3.12ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '666b1cfab4b1f2fcad48454d2dd141452bd7c701d4600df17c1c2bf1d52d0188c4b092d8d75bb73b';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:28:27 [1.55ms] */
select * from `oauth_access_tokens` where `id` = '666b1cfab4b1f2fcad48454d2dd141452bd7c701d4600df17c1c2bf1d52d0188c4b092d8d75bb73b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:28:27 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '666b1cfab4b1f2fcad48454d2dd141452bd7c701d4600df17c1c2bf1d52d0188c4b092d8d75bb73b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:28:27 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:28:27 [0.16ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:28:27 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '666b1cfab4b1f2fcad48454d2dd141452bd7c701d4600df17c1c2bf1d52d0188c4b092d8d75bb73b' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:28:27 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:28:27 [0.41ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:28:32 [1.46ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:28:32 [0.27ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:28:32 [0.98ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:28:32 [10.65ms] */
update `userprofiles` set `login_count` = 3780, `last_login` = '2025-03-04 10:28:32', `userprofiles`.`updated_at` = '2025-03-04 10:28:32' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:28:32 [0.29ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:28:32 [0.5ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:28:32 [0.24ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:28:32 [0.16ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:28:32 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:28:32 [0.15ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:28:32 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:28:32 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:28:32 [3.46ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('eea31692f6b55e7999e3630dc16df9ce30da8bbf2de4aebd00e819e8a04f1ed4a3cf103ba66f49b4', 149, 5, '[]', 0, '2025-03-04 10:28:32', '2025-03-04 10:28:32', '2026-03-04 10:28:32');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:28:32 [0.36ms] */
select * from `oauth_access_tokens` where `id` = 'eea31692f6b55e7999e3630dc16df9ce30da8bbf2de4aebd00e819e8a04f1ed4a3cf103ba66f49b4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:28:32 [2.86ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'eea31692f6b55e7999e3630dc16df9ce30da8bbf2de4aebd00e819e8a04f1ed4a3cf103ba66f49b4';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:28:32 [2.39ms] */
select * from `oauth_access_tokens` where `id` = 'eea31692f6b55e7999e3630dc16df9ce30da8bbf2de4aebd00e819e8a04f1ed4a3cf103ba66f49b4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:28:32 [0.42ms] */
select * from `oauth_access_tokens` where `id` = 'eea31692f6b55e7999e3630dc16df9ce30da8bbf2de4aebd00e819e8a04f1ed4a3cf103ba66f49b4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:28:32 [0.2ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:28:32 [0.2ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:28:32 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'eea31692f6b55e7999e3630dc16df9ce30da8bbf2de4aebd00e819e8a04f1ed4a3cf103ba66f49b4' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:28:32 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:28:32 [0.45ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:28:39 [1.46ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:28:39 [0.3ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:28:39 [1ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:28:39 [11.23ms] */
update `userprofiles` set `login_count` = 3781, `last_login` = '2025-03-04 10:28:39', `userprofiles`.`updated_at` = '2025-03-04 10:28:39' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:28:39 [0.24ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:28:39 [0.47ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:28:39 [0.17ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:28:39 [0.15ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:28:39 [0.11ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:28:39 [0.13ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:28:39 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:28:39 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:28:39 [3.93ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('cda0ac529b939398707ba0e522a100c078dd067023f746ea026c1a108933a562f8e11fb05fa8558e', 149, 5, '[]', 0, '2025-03-04 10:28:39', '2025-03-04 10:28:39', '2026-03-04 10:28:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:28:39 [0.44ms] */
select * from `oauth_access_tokens` where `id` = 'cda0ac529b939398707ba0e522a100c078dd067023f746ea026c1a108933a562f8e11fb05fa8558e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:28:39 [3.56ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'cda0ac529b939398707ba0e522a100c078dd067023f746ea026c1a108933a562f8e11fb05fa8558e';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:28:39 [1.65ms] */
select * from `oauth_access_tokens` where `id` = 'cda0ac529b939398707ba0e522a100c078dd067023f746ea026c1a108933a562f8e11fb05fa8558e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:28:39 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'cda0ac529b939398707ba0e522a100c078dd067023f746ea026c1a108933a562f8e11fb05fa8558e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:28:39 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:28:39 [0.28ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:28:39 [0.18ms] */
select * from `oauth_access_tokens` where `id` = 'cda0ac529b939398707ba0e522a100c078dd067023f746ea026c1a108933a562f8e11fb05fa8558e' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:28:39 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:28:39 [0.51ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:28:44 [1.76ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:28:44 [0.27ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:28:44 [2.31ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:28:44 [19.26ms] */
update `userprofiles` set `login_count` = 3782, `last_login` = '2025-03-04 10:28:44', `userprofiles`.`updated_at` = '2025-03-04 10:28:44' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:28:44 [0.36ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:28:44 [0.75ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:28:44 [0.32ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:28:44 [0.28ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:28:44 [0.25ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:28:44 [0.31ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:28:44 [0.16ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:28:44 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:28:44 [4.95ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('aaec1d53943339eb6da5eb08b230a3152bf28778d3646719b75b0994c6724b94e261dba8c87247c9', 149, 5, '[]', 0, '2025-03-04 10:28:44', '2025-03-04 10:28:44', '2026-03-04 10:28:44');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:28:44 [0.42ms] */
select * from `oauth_access_tokens` where `id` = 'aaec1d53943339eb6da5eb08b230a3152bf28778d3646719b75b0994c6724b94e261dba8c87247c9' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:28:44 [3.62ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'aaec1d53943339eb6da5eb08b230a3152bf28778d3646719b75b0994c6724b94e261dba8c87247c9';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:28:44 [1.81ms] */
select * from `oauth_access_tokens` where `id` = 'aaec1d53943339eb6da5eb08b230a3152bf28778d3646719b75b0994c6724b94e261dba8c87247c9' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:28:44 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'aaec1d53943339eb6da5eb08b230a3152bf28778d3646719b75b0994c6724b94e261dba8c87247c9' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:28:44 [0.22ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:28:44 [0.24ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:28:44 [0.19ms] */
select * from `oauth_access_tokens` where `id` = 'aaec1d53943339eb6da5eb08b230a3152bf28778d3646719b75b0994c6724b94e261dba8c87247c9' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:28:44 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:28:44 [0.5ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:35:06 [2.16ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:35:06 [0.17ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:35:06 [0.84ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:35:06 [8.99ms] */
update `userprofiles` set `login_count` = 3783, `last_login` = '2025-03-04 10:35:06', `userprofiles`.`updated_at` = '2025-03-04 10:35:06' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:35:06 [0.31ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:35:06 [0.79ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:35:06 [0.35ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:35:06 [0.14ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:35:06 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:35:06 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:35:06 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:35:06 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:35:06 [4.22ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('e0e59fcc70f83caa0948134a80fdbd580b03cdfbd6c496442f80d5272d72400824764f6eb19a68ba', 149, 5, '[]', 0, '2025-03-04 10:35:06', '2025-03-04 10:35:06', '2026-03-04 10:35:06');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:35:06 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'e0e59fcc70f83caa0948134a80fdbd580b03cdfbd6c496442f80d5272d72400824764f6eb19a68ba' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:35:06 [3.19ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'e0e59fcc70f83caa0948134a80fdbd580b03cdfbd6c496442f80d5272d72400824764f6eb19a68ba';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:35:06 [2.29ms] */
select * from `oauth_access_tokens` where `id` = 'e0e59fcc70f83caa0948134a80fdbd580b03cdfbd6c496442f80d5272d72400824764f6eb19a68ba' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:35:06 [0.24ms] */
select * from `oauth_access_tokens` where `id` = 'e0e59fcc70f83caa0948134a80fdbd580b03cdfbd6c496442f80d5272d72400824764f6eb19a68ba' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:35:06 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:35:06 [0.19ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:35:06 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'e0e59fcc70f83caa0948134a80fdbd580b03cdfbd6c496442f80d5272d72400824764f6eb19a68ba' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:35:06 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:35:06 [0.42ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `vehicle`.`license_plate` = 'TR218' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:35:48 [2.13ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:35:48 [0.31ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:35:48 [0.87ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:35:48 [4.96ms] */
update `userprofiles` set `login_count` = 3784, `last_login` = '2025-03-04 10:35:48', `userprofiles`.`updated_at` = '2025-03-04 10:35:48' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:35:48 [0.21ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:35:48 [0.54ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:35:48 [0.27ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:35:48 [0.23ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:35:48 [0.19ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:35:48 [0.23ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:35:48 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:35:48 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:35:48 [4.89ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('523339d9276135ee8c9542a56aac021e13bfbcf912b4450addeeb5eb5f2ff50d4bd6210be909c3cc', 149, 5, '[]', 0, '2025-03-04 10:35:48', '2025-03-04 10:35:48', '2026-03-04 10:35:48');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:35:48 [0.68ms] */
select * from `oauth_access_tokens` where `id` = '523339d9276135ee8c9542a56aac021e13bfbcf912b4450addeeb5eb5f2ff50d4bd6210be909c3cc' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:35:48 [3.13ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '523339d9276135ee8c9542a56aac021e13bfbcf912b4450addeeb5eb5f2ff50d4bd6210be909c3cc';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:35:49 [1.47ms] */
select * from `oauth_access_tokens` where `id` = '523339d9276135ee8c9542a56aac021e13bfbcf912b4450addeeb5eb5f2ff50d4bd6210be909c3cc' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:35:49 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '523339d9276135ee8c9542a56aac021e13bfbcf912b4450addeeb5eb5f2ff50d4bd6210be909c3cc' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:35:49 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:35:49 [0.18ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:35:49 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '523339d9276135ee8c9542a56aac021e13bfbcf912b4450addeeb5eb5f2ff50d4bd6210be909c3cc' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:35:49 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:35:49 [4.89ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `vehicle`.`license_plate` = 'WJ461' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 1 - 2025-03-04 10:35:59 [2.3ms] */
select * from `users` where `id` = 2 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 2 - 2025-03-04 10:35:59 [0.79ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 3 - 2025-03-04 10:35:59 [0.33ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 4 - 2025-03-04 10:35:59 [0.53ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'permissions';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 5 - 2025-03-04 10:35:59 [0.47ms] */
select * from `party` where `party`.`id` = 39396 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 6 - 2025-03-04 10:35:59 [0.36ms] */
select * from `person` where `person`.`id` = 39396 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 7 - 2025-03-04 10:35:59 [19.61ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 39396 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 8 - 2025-03-04 10:35:59 [0.35ms] */
select * from `address` where `address`.`id` = 39396 and `address`.`id` is not null and `address`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 9 - 2025-03-04 10:35:59 [0.19ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 10 - 2025-03-04 10:35:59 [0.13ms] */
select * from `region` where `region`.`id` = 7 and `region`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 11 - 2025-03-04 10:35:59 [0.26ms] */
select * from `region` where `region`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 12 - 2025-03-04 10:35:59 [0.15ms] */
select * from `tax_collection_points` where `region_id` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 13 - 2025-03-04 10:35:59 [0.15ms] */
select * from `district` where `region_id` is null and `district`.`deleted_at` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 14 - 2025-03-04 10:35:59 [0.15ms] */
select * from `branches` where `district_id` is null order by `name` asc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 15 - 2025-03-04 10:35:59 [0.36ms] */
select count(*) as aggregate from `party_vehicle` where `party_id` = 39396 and `party_vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 16 - 2025-03-04 10:35:59 [0.38ms] */
select count(*) as aggregate from `transaction` where `party_id` = 39396 and `status` = 'INPROGRESS' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 17 - 2025-03-04 10:35:59 [0.33ms] */
select sum(`outstanding_balance`) as aggregate from `invoice` where `party_id` = 39396 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 18 - 2025-03-04 10:35:59 [0.22ms] */
select count(*) as aggregate from `invoice` where `party_id` = 39396 and `outstanding_balance` > 0 and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 19 - 2025-03-04 10:35:59 [0.22ms] */
select * from `party` where `party`.`id` = 39396 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 20 - 2025-03-04 10:35:59 [0.16ms] */
select * from `person` where `person`.`id` = 39396 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 21 - 2025-03-04 10:35:59 [0.68ms] */
select * from `activity_log` where `log_name` = 'party' and `subject_id` = 39396 and `description` = 'updated' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 22 - 2025-03-04 10:35:59 [0.42ms] */
select * from `activity_log` where `log_name` = 'person' and `subject_id` = 39396 and `description` = 'updated' order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 23 - 2025-03-04 10:35:59 [0.15ms] */
select * from `party` where `party`.`partyable_type` = 'Person' and `party`.`partyable_id` = 39396 and `party`.`partyable_id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 24 - 2025-03-04 10:35:59 [0.32ms] */
select * from `person_bio_photo` where `party_id` = 39396 and `person_bio_photo`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 25 - 2025-03-04 10:35:59 [0.25ms] */
select * from `person_bio_iris` where `party_id` = 39396 and `person_bio_iris`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 26 - 2025-03-04 10:35:59 [0.26ms] */
select * from `party_vehicle` where `party_id` = 39396 and `party_vehicle`.`deleted_at` is null order by `updated_at` desc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 27 - 2025-03-04 10:35:59 [0.3ms] */
select * from `vehicle` where `vehicle`.`id` = 50181 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 28 - 2025-03-04 10:35:59 [0.24ms] */
select * from `model` where `model`.`id` = 1531 and `model`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 29 - 2025-03-04 10:35:59 [0.26ms] */
select * from `make` where `make`.`id` = 78 and `make`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 30 - 2025-03-04 10:35:59 [0.22ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 31 - 2025-03-04 10:35:59 [0.14ms] */
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://testtra.puntlandgov.org/m/party/39396
   Query 32 - 2025-03-04 10:35:59 [0.2ms] */
select * from `party` where `party`.`id` = 39396 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 33 - 2025-03-04 10:35:59 [0.15ms] */
select * from `person` where `person`.`id` = 39396 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 34 - 2025-03-04 10:35:59 [0.25ms] */
select * from `transaction` where `transaction`.`id` = 81 and `transaction`.`id` is not null and `transaction`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 35 - 2025-03-04 10:35:59 [0.14ms] */
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://testtra.puntlandgov.org/m/party/39396
   Query 36 - 2025-03-04 10:35:59 [0.15ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 37 - 2025-03-04 10:35:59 [0.14ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 5 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 38 - 2025-03-04 10:35:59 [0.17ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 39 - 2025-03-04 10:35:59 [0.37ms] */
select count(*) as aggregate from `invoice` where `invoice`.`invoice_amount` <> 0.00 and `party_id` in (39396) and `status` <> 'CANCELED' and `status` <> 'CANCELED' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 40 - 2025-03-04 10:35:59 [0.34ms] */
select * from `invoice` where `invoice`.`invoice_amount` <> 0.00 and `party_id` in (39396) and `status` <> 'CANCELED' and `status` <> 'CANCELED' and `invoice`.`deleted_at` is null order by `updated_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 41 - 2025-03-04 10:35:59 [0.26ms] */
select * from `transaction` where `transaction`.`id` in (81, 95272) and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 42 - 2025-03-04 10:35:59 [0.22ms] */
select * from `vehicle` where `vehicle`.`id` in (50181) and `vehicle`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 43 - 2025-03-04 10:35:59 [0.14ms] */
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://testtra.puntlandgov.org/m/party/39396
   Query 44 - 2025-03-04 10:35:59 [0.13ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 45 - 2025-03-04 10:35:59 [0.14ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 46 - 2025-03-04 10:35:59 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 47 - 2025-03-04 10:35:59 [0.24ms] */
select * from `service` where `service`.`id` in (1, 2) and `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 48 - 2025-03-04 10:35:59 [0.2ms] */
select * from `party` where `party`.`id` in (39396) and `party`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 49 - 2025-03-04 10:35:59 [0.26ms] */
select * from `address` where `address`.`id` in (39396) and `address`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 50 - 2025-03-04 10:35:59 [0.16ms] */
select * from `party` where `party`.`id` = 39396 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 51 - 2025-03-04 10:35:59 [0.15ms] */
select * from `person` where `person`.`id` = 39396 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 52 - 2025-03-04 10:35:59 [0.14ms] */
select * from `party` where `party`.`id` = 39396 and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 53 - 2025-03-04 10:35:59 [0.15ms] */
select * from `person` where `person`.`id` = 39396 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 54 - 2025-03-04 10:35:59 [0.16ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 55 - 2025-03-04 10:35:59 [0.58ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 56 - 2025-03-04 10:35:59 [5.14ms] */
select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` = 2 and `model_has_roles`.`model_type` = 'App\Models\User' limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 57 - 2025-03-04 10:35:59 [0.29ms] */
select count(*) as aggregate from `transaction` inner join `service` on `service`.`id` = `transaction`.`service_id` where `transaction`.`party_id` = 39396 and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `status` != 'CANCELED' and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 58 - 2025-03-04 10:35:59 [0.34ms] */
select `transaction`.* from `transaction` inner join `service` on `service`.`id` = `transaction`.`service_id` where `transaction`.`party_id` = 39396 and `transaction`.`one_time_tax` <> 'Y' and `transaction`.`parent_id` is null and `status` != 'CANCELED' and `transaction`.`deleted_at` is null order by `transaction`.`created_at` desc limit 10 offset 0;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 59 - 2025-03-04 10:35:59 [0.15ms] */
select * from `service` where `service`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 60 - 2025-03-04 10:35:59 [0.16ms] */
select * from `roles`;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 61 - 2025-03-04 10:35:59 [0.63ms] */
select * from `service_workflow` where `service_workflow`.`id` = 7 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 62 - 2025-03-04 10:35:59 [0.35ms] */
select * from `service` where `service`.`id` = 7 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 63 - 2025-03-04 10:35:59 [0.27ms] */
select * from `service` where `service`.`id` = 7 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 64 - 2025-03-04 10:35:59 [0.23ms] */
select * from `vehicle` where `vehicle`.`id` = 50181 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 65 - 2025-03-04 10:35:59 [0.21ms] */
select * from `party` where `party`.`id` = 39396 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 66 - 2025-03-04 10:35:59 [0.23ms] */
select * from `person` where `person`.`id` = 39396 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 67 - 2025-03-04 10:35:59 [0.38ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 81 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 68 - 2025-03-04 10:35:59 [0.34ms] */
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://testtra.puntlandgov.org/m/party/39396
   Query 69 - 2025-03-04 10:35:59 [0.29ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 70 - 2025-03-04 10:35:59 [0.3ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 71 - 2025-03-04 10:35:59 [0.7ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 184096 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 72 - 2025-03-04 10:35:59 [0.49ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 31 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 73 - 2025-03-04 10:35:59 [0.2ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 74 - 2025-03-04 10:35:59 [0.21ms] */
select * from `service_workflow` where `service_workflow`.`id` = 2 and `service_workflow`.`id` is not null and `service_workflow`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 75 - 2025-03-04 10:35:59 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 76 - 2025-03-04 10:35:59 [0.2ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 77 - 2025-03-04 10:35:59 [0.22ms] */
select * from `vehicle` where `vehicle`.`id` = 50181 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 78 - 2025-03-04 10:35:59 [0.21ms] */
select * from `party` where `party`.`id` = 39396 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 79 - 2025-03-04 10:35:59 [0.32ms] */
select * from `person` where `person`.`id` = 39396 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 80 - 2025-03-04 10:35:59 [0.35ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 81 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 81 - 2025-03-04 10:35:59 [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://testtra.puntlandgov.org/m/party/39396
   Query 82 - 2025-03-04 10:35:59 [0.23ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 83 - 2025-03-04 10:35:59 [0.22ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 84 - 2025-03-04 10:35:59 [0.24ms] */
select * from `users` where `users`.`id` = 1 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 85 - 2025-03-04 10:35:59 [0.51ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 95272 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 86 - 2025-03-04 10:35:59 [0.21ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 5 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 87 - 2025-03-04 10:35:59 [0.2ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 88 - 2025-03-04 10:35:59 [0.23ms] */
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://testtra.puntlandgov.org/m/party/39396
   Query 89 - 2025-03-04 10:35:59 [0.22ms] */
select * from `service` where `service`.`id` = 1 and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 90 - 2025-03-04 10:35:59 [0.21ms] */
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://testtra.puntlandgov.org/m/party/39396
   Query 91 - 2025-03-04 10:35:59 [0.27ms] */
select * from `vehicle` where `vehicle`.`id` = 50181 and `vehicle`.`id` is not null and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 92 - 2025-03-04 10:35:59 [0.23ms] */
select * from `party` where `party`.`id` = 39396 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 93 - 2025-03-04 10:35:59 [0.15ms] */
select * from `person` where `person`.`id` = 39396 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 94 - 2025-03-04 10:35:59 [0.15ms] */
select * from `party_vehicle` where `party_vehicle`.`id` = 81 and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 95 - 2025-03-04 10:35:59 [0.13ms] */
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://testtra.puntlandgov.org/m/party/39396
   Query 96 - 2025-03-04 10:35:59 [0.13ms] */
select * from `sub_category` where `sub_category`.`id` = 3 and `sub_category`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 97 - 2025-03-04 10:35:59 [0.14ms] */
select * from `district` where `district`.`id` = 37 and `district`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 98 - 2025-03-04 10:35:59 [0.15ms] */
select * from `users` where `users`.`id` = 1 and `users`.`id` is not null and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 99 - 2025-03-04 10:35:59 [0.3ms] */
select * from `transaction_workflow` where `transaction_workflow`.`transaction_id` = 81 and `transaction_workflow`.`transaction_id` is not null and `transaction_workflow`.`deleted_at` is null order by `created_at` desc limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 100 - 2025-03-04 10:35:59 [0.13ms] */
select * from `workflow_definition` where `workflow_definition`.`id` = 5 and `workflow_definition`.`id` is not null and `workflow_definition`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 101 - 2025-03-04 10:35:59 [0.13ms] */
select * from `roles` where `roles`.`id` = 9 and `roles`.`id` is not null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 102 - 2025-03-04 10:35:59 [0.46ms] */
select * from `discount` where `party_id` = 39396 and `discount`.`deleted_at` is null order by `created_at` desc;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 103 - 2025-03-04 10:35:59 [0.15ms] */
select * from `party` where `party`.`id` = 39396 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 104 - 2025-03-04 10:35:59 [0.15ms] */
select * from `person` where `person`.`id` = 39396 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 105 - 2025-03-04 10:35:59 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 106 - 2025-03-04 10:35:59 [0.14ms] */
select * from `party` where `party`.`id` = 39396 and `party`.`id` is not null and `party`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 107 - 2025-03-04 10:35:59 [0.15ms] */
select * from `person` where `person`.`id` = 39396 and `person`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 108 - 2025-03-04 10:35:59 [0.13ms] */
select * from `service` where `service`.`id` = 2 and `service`.`id` is not null and `service`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 109 - 2025-03-04 10:35:59 [0.3ms] */
select * from `customer_identity_types` where `customer_identity_types`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 110 - 2025-03-04 10:35:59 [0.23ms] */
select * from `countries` where `countries`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): GET https://testtra.puntlandgov.org/m/party/39396
   Query 111 - 2025-03-04 10:35:59 [0.23ms] */
select count(*) as aggregate from `customer_identity_documents` where `party_id` = 39396 and `customer_identity_documents`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:36:15 [1.5ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:36:15 [0.31ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:36:15 [0.86ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:36:15 [3.51ms] */
update `userprofiles` set `login_count` = 3785, `last_login` = '2025-03-04 10:36:15', `userprofiles`.`updated_at` = '2025-03-04 10:36:15' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:36:15 [0.22ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:36:15 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:36:15 [0.17ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:36:15 [0.18ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:36:15 [0.13ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:36:15 [0.15ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:36:15 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:36:15 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:36:15 [5.57ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('ce27a75b97313afa74c7a734be55b6c312017511bf78d792ccdbdc343f2a535d4366095a27891d32', 149, 5, '[]', 0, '2025-03-04 10:36:15', '2025-03-04 10:36:15', '2026-03-04 10:36:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:36:15 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'ce27a75b97313afa74c7a734be55b6c312017511bf78d792ccdbdc343f2a535d4366095a27891d32' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:36:15 [4.49ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'ce27a75b97313afa74c7a734be55b6c312017511bf78d792ccdbdc343f2a535d4366095a27891d32';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:36:15 [1.54ms] */
select * from `oauth_access_tokens` where `id` = 'ce27a75b97313afa74c7a734be55b6c312017511bf78d792ccdbdc343f2a535d4366095a27891d32' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:36:15 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'ce27a75b97313afa74c7a734be55b6c312017511bf78d792ccdbdc343f2a535d4366095a27891d32' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:36:15 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:36:15 [0.17ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:36:15 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'ce27a75b97313afa74c7a734be55b6c312017511bf78d792ccdbdc343f2a535d4366095a27891d32' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:36:15 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:36:15 [0.45ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `vehicle`.`license_plate` = 'WJ461' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:36:47 [1.75ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:36:47 [0.3ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:36:47 [1.1ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:36:47 [7.33ms] */
update `userprofiles` set `login_count` = 3786, `last_login` = '2025-03-04 10:36:47', `userprofiles`.`updated_at` = '2025-03-04 10:36:47' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:36:47 [0.25ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:36:47 [0.43ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:36:47 [0.16ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:36:47 [0.15ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:36:47 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:36:47 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:36:47 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:36:47 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:36:47 [3.86ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('98f29aa3f12d2c1f846cb7fd6e4d1756daa65714cd63f88edd5ca5c779bceeff443c5e4def3f9084', 149, 5, '[]', 0, '2025-03-04 10:36:47', '2025-03-04 10:36:47', '2026-03-04 10:36:47');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:36:47 [0.35ms] */
select * from `oauth_access_tokens` where `id` = '98f29aa3f12d2c1f846cb7fd6e4d1756daa65714cd63f88edd5ca5c779bceeff443c5e4def3f9084' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:36:47 [2.68ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '98f29aa3f12d2c1f846cb7fd6e4d1756daa65714cd63f88edd5ca5c779bceeff443c5e4def3f9084';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 1 - 2025-03-04 10:36:47 [1.48ms] */
select * from `oauth_access_tokens` where `id` = '98f29aa3f12d2c1f846cb7fd6e4d1756daa65714cd63f88edd5ca5c779bceeff443c5e4def3f9084' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 2 - 2025-03-04 10:36:47 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '98f29aa3f12d2c1f846cb7fd6e4d1756daa65714cd63f88edd5ca5c779bceeff443c5e4def3f9084' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 3 - 2025-03-04 10:36:47 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 4 - 2025-03-04 10:36:47 [0.16ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 5 - 2025-03-04 10:36:47 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '98f29aa3f12d2c1f846cb7fd6e4d1756daa65714cd63f88edd5ca5c779bceeff443c5e4def3f9084' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 6 - 2025-03-04 10:36:47 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/transactions
   Query 7 - 2025-03-04 10:36:47 [2.61ms] */
select `transaction`.`id` as `transaction_id`, `invoice`.`id` as `invoice_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `transaction`.`status`, `users`.`name` as `assigned_to`, `transaction`.`created_at`, `transaction`.`updated_at`, `roles`.`name` as `role`, `invoice`.`total_invoice_amount` as `total_tax_amount`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `transaction` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `users` on `transaction`.`assigned_to` = `users`.`id` left join `workflow_definition` on `transaction`.`current_workflow_state_id` = `workflow_definition`.`id` left join `invoice` on `transaction`.`invoice_id` = `invoice`.`id` left join `roles` on `workflow_definition`.`role_id` = `roles`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `transaction`.`party_id` = 59307 and `vehicle`.`license_plate` = 'MR568' and `invoice`.`total_invoice_amount` > 0 and `transaction`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:41:39 [1.49ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:41:39 [0.21ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:41:39 [0.68ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:41:39 [3.57ms] */
update `userprofiles` set `login_count` = 3787, `last_login` = '2025-03-04 10:41:39', `userprofiles`.`updated_at` = '2025-03-04 10:41:39' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:41:39 [0.27ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:41:39 [0.68ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:41:39 [0.26ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:41:39 [0.17ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:41:39 [0.14ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:41:39 [0.16ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:41:39 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:41:39 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:41:39 [3.34ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf', 149, 5, '[]', 0, '2025-03-04 10:41:39', '2025-03-04 10:41:39', '2026-03-04 10:41:39');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:41:39 [0.42ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:41:39 [3.21ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:41:40 [2.26ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:41:40 [0.29ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:41:40 [0.27ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:41:40 [0.16ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:41:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:41:40 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:41:40 [1.09ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'RTA2025' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:41:40 [0.2ms] */
select * from `vehicle` where `id` = 99466 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:41:40 [0.23ms] */
select * from `party_vehicle` where `vehicle_id` = 99466 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:41:40 [1.28ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:41:40 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:41:40 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:41:40 [0.17ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:41:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:41:40 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:41:40 [0.7ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = '5656SXYVCYHC' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:41:40 [0.26ms] */
select * from `vehicle` where `id` = 99458 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:41:40 [0.25ms] */
select * from `party_vehicle` where `vehicle_id` = 99458 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:41:40 [1.89ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:41:40 [0.19ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:41:40 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:41:40 [0.22ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:41:40 [0.25ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:41:40 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:41:40 [1.28ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'LIC1253RTA001' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:41:40 [0.52ms] */
select * from `vehicle` where `id` = 99468 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:41:40 [0.49ms] */
select * from `party_vehicle` where `vehicle_id` = 99468 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:41:40 [1.99ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:41:40 [0.28ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:41:40 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:41:40 [0.19ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:41:40 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:41:40 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:41:40 [0.78ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'YP073' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:41:40 [0.24ms] */
select * from `vehicle` where `id` = 87438 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:41:40 [0.26ms] */
select * from `party_vehicle` where `vehicle_id` = 87438 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:41:40 [1.47ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:41:40 [0.15ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:41:40 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:41:40 [0.17ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:41:40 [0.14ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:41:40 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:41:40 [0.79ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'SFDYUF520002' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:41:40 [0.23ms] */
select * from `vehicle` where `id` = 99460 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:41:40 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 99460 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:41:40 [1.89ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:41:40 [0.26ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:41:40 [0.23ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:41:40 [0.33ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:41:40 [0.24ms] */
select * from `oauth_access_tokens` where `id` = '3fa703588902ca00e7b131681a1358f3eaa7b92965b65e07f6a3adb9a8203e51ae477ef4ec353ccf' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:41:40 [0.25ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:41:40 [1ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 78956 and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:41:40 [0.31ms] */
select * from `vehicle` where `license_plate` = 78956 and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:42:14 [1.61ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:42:14 [1.36ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:42:14 [1.35ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:42:14 [0.18ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:42:14 [0.49ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:42:15 [0.31ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:42:15 [0.44ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:42:15 [11.2ms] */
update `userprofiles` set `login_count` = 3788, `last_login` = '2025-03-04 10:42:14', `userprofiles`.`updated_at` = '2025-03-04 10:42:15' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:42:15 [0.29ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:42:15 [6.28ms] */
update `userprofiles` set `login_count` = 3788, `last_login` = '2025-03-04 10:42:15', `userprofiles`.`updated_at` = '2025-03-04 10:42:15' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:42:15 [0.22ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:42:15 [0.52ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:42:15 [0.23ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:42:15 [0.52ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:42:15 [0.46ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:42:15 [0.18ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:42:15 [0.17ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:42:15 [3.39ms] */
update `userprofiles` set `login_count` = 3789, `userprofiles`.`updated_at` = '2025-03-04 10:42:15' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:42:15 [0.27ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:42:15 [0.14ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:42:15 [0.12ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:42:15 [0.54ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:42:15 [0.19ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:42:15 [0.15ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:42:15 [0.16ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:42:15 [0.18ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:42:15 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:42:15 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:42:15 [0.22ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:42:15 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:42:15 [0.19ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:42:15 [3.26ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('d7d61d2f97e870b2ecf925228139b5c0453aabe38c82564f75774e562c2a79b1aa320439212d4d25', 149, 5, '[]', 0, '2025-03-04 10:42:15', '2025-03-04 10:42:15', '2026-03-04 10:42:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:42:15 [0.14ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:42:15 [0.13ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:42:15 [0.14ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:42:15 [4.07ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('ed1abbc12354089bf161ac56cf56f56d567b5d2ade1d400f46ea1cb8886b30e4fda12312e1fc3b21', 149, 5, '[]', 0, '2025-03-04 10:42:15', '2025-03-04 10:42:15', '2026-03-04 10:42:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:42:15 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:42:15 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:42:15 [2.8ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('569c67cb1f05c859a9f5b6e97ef9c1af0b21372c4c8a5187ceaf4a7501f592bcedde69c59c0c9e65', 149, 5, '[]', 0, '2025-03-04 10:42:15', '2025-03-04 10:42:15', '2026-03-04 10:42:15');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:42:15 [0.27ms] */
select * from `oauth_access_tokens` where `id` = 'd7d61d2f97e870b2ecf925228139b5c0453aabe38c82564f75774e562c2a79b1aa320439212d4d25' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:42:15 [2.6ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'd7d61d2f97e870b2ecf925228139b5c0453aabe38c82564f75774e562c2a79b1aa320439212d4d25';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:42:15 [0.4ms] */
select * from `oauth_access_tokens` where `id` = 'ed1abbc12354089bf161ac56cf56f56d567b5d2ade1d400f46ea1cb8886b30e4fda12312e1fc3b21' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:42:15 [1.59ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'ed1abbc12354089bf161ac56cf56f56d567b5d2ade1d400f46ea1cb8886b30e4fda12312e1fc3b21';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:42:15 [0.32ms] */
select * from `oauth_access_tokens` where `id` = '569c67cb1f05c859a9f5b6e97ef9c1af0b21372c4c8a5187ceaf4a7501f592bcedde69c59c0c9e65' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:42:15 [4.05ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = '569c67cb1f05c859a9f5b6e97ef9c1af0b21372c4c8a5187ceaf4a7501f592bcedde69c59c0c9e65';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 1 - 2025-03-04 10:42:15 [1.62ms] */
select * from `oauth_access_tokens` where `id` = 'ed1abbc12354089bf161ac56cf56f56d567b5d2ade1d400f46ea1cb8886b30e4fda12312e1fc3b21' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 2 - 2025-03-04 10:42:15 [0.16ms] */
select * from `oauth_access_tokens` where `id` = 'ed1abbc12354089bf161ac56cf56f56d567b5d2ade1d400f46ea1cb8886b30e4fda12312e1fc3b21' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 3 - 2025-03-04 10:42:15 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 4 - 2025-03-04 10:42:15 [0.19ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 5 - 2025-03-04 10:42:15 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'ed1abbc12354089bf161ac56cf56f56d567b5d2ade1d400f46ea1cb8886b30e4fda12312e1fc3b21' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 6 - 2025-03-04 10:42:15 [0.14ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 7 - 2025-03-04 10:42:15 [1.19ms] */
select `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, `vehicle`.`license_plate`, `payment`.`id` as `payment_id`, `payment`.`payment_amount`, `external_payment_reference_no` as `payment_reference_number`, `payment`.`payment_date`, `payment_method`.`name` as `payment_method`, `payment`.`paid_by`, `payment`.`paid_by_mobile` from `payment` left join `invoice_payment` on `invoice_payment`.`payment_id` = `payment`.`id` left join `invoice` on `invoice_payment`.`invoice_id` = `invoice`.`id` left join `transaction` on `transaction`.`invoice_id` = `invoice`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `party` on `transaction`.`party_id` = `party`.`id` left join `payment_method` on `payment`.`payment_method_id` = `payment_method`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `service`.`name` = 'Tax' and `transaction`.`party_id` = 59307 and `vehicle`.`license_plate` = 'YN342' and `payment`.`deleted_at` is null order by `payment`.`payment_date` desc;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/payments
   Query 8 - 2025-03-04 10:42:15 [0.43ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter` from `invoice` left join `invoice_payment` on `invoice`.`id` = `invoice_payment`.`invoice_id` left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` where `invoice_payment`.`payment_id` = 127449;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 1 - 2025-03-04 10:42:15 [1.61ms] */
select * from `oauth_access_tokens` where `id` = '569c67cb1f05c859a9f5b6e97ef9c1af0b21372c4c8a5187ceaf4a7501f592bcedde69c59c0c9e65' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 2 - 2025-03-04 10:42:15 [0.23ms] */
select * from `oauth_access_tokens` where `id` = '569c67cb1f05c859a9f5b6e97ef9c1af0b21372c4c8a5187ceaf4a7501f592bcedde69c59c0c9e65' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 3 - 2025-03-04 10:42:15 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 4 - 2025-03-04 10:42:15 [0.21ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 5 - 2025-03-04 10:42:15 [0.18ms] */
select * from `oauth_access_tokens` where `id` = '569c67cb1f05c859a9f5b6e97ef9c1af0b21372c4c8a5187ceaf4a7501f592bcedde69c59c0c9e65' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 6 - 2025-03-04 10:42:15 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/invoices
   Query 7 - 2025-03-04 10:42:15 [1.1ms] */
select `invoice`.`id` as `invoice_id`, `invoice_number`, `term`.`year`, `term`.`quarter`, `invoice`.`transaction_id`, `party`.`id` as `customer_id`, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS customer_name, CASE
                WHEN party.phone_number_2 IS NOT NULL THEN CONCAT(party.phone_number_1," / ",party.phone_number_2)
                ELSE party.phone_number_1 END as mobile_number, `vehicle`.`license_plate`, `service`.`name` as `service_name`, `invoice`.`due_date`, `invoice`.`total_invoice_amount` as `invoice_amount`, `invoice`.`status`, `invoice`.`parent`, `invoice`.`created_at`, `invoice`.`updated_at`, CASE WHEN invoice_payment.id IS NULL THEN "Y" ELSE "N" END as make_payment from `invoice` left join `party` on `invoice`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' left join `transaction` on `invoice`.`transaction_id` = `transaction`.`id` left join `vehicle_tax` on `transaction`.`vehicle_tax_id` = `vehicle_tax`.`id` left join `term` on `vehicle_tax`.`term_id` = `term`.`id` left join `vehicle` on `transaction`.`vehicle_id` = `vehicle`.`id` left join `service` on `transaction`.`service_id` = `service`.`id` left join `invoice_payment` on `invoice_payment`.`invoice_id` = `invoice`.`id` where `invoice`.`total_invoice_amount` > 0 and `service`.`name` = 'Tax' and `transaction`.`vehicle_tax_id` is not null and `invoice`.`parent` = 'N' and `invoice`.`party_id` = 59307 and `license_plate` = 'YN342' and `invoice`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:42:15 [1.81ms] */
select * from `oauth_access_tokens` where `id` = 'd7d61d2f97e870b2ecf925228139b5c0453aabe38c82564f75774e562c2a79b1aa320439212d4d25' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:42:15 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'd7d61d2f97e870b2ecf925228139b5c0453aabe38c82564f75774e562c2a79b1aa320439212d4d25' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:42:15 [0.15ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:42:15 [0.16ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:42:15 [0.15ms] */
select * from `oauth_access_tokens` where `id` = 'd7d61d2f97e870b2ecf925228139b5c0453aabe38c82564f75774e562c2a79b1aa320439212d4d25' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:42:15 [0.13ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:42:15 [0.91ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'YN342' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:42:15 [0.39ms] */
select * from `vehicle` where `id` = 94477 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:42:15 [0.3ms] */
select * from `party_vehicle` where `vehicle_id` = 94477 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 1 - 2025-03-04 10:42:54 [1.69ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 2 - 2025-03-04 10:42:54 [0.24ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 3 - 2025-03-04 10:42:54 [0.71ms] */
select * from `userprofiles` where `userprofiles`.`user_id` = 149 and `userprofiles`.`user_id` is not null and `userprofiles`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 4 - 2025-03-04 10:42:54 [12.85ms] */
update `userprofiles` set `login_count` = 3790, `last_login` = '2025-03-04 10:42:54', `userprofiles`.`updated_at` = '2025-03-04 10:42:54' where `id` = 149;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 5 - 2025-03-04 10:42:54 [0.32ms] */
select * from `users` where `email` = 'sivaprasad@admin.com' and `users`.`deleted_at` is null;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 6 - 2025-03-04 10:42:54 [0.69ms] */
select column_name as `column_name` from information_schema.columns where table_schema = 'prod_rta_temp' and table_name = 'roles';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 7 - 2025-03-04 10:42:54 [0.3ms] */
select `id`, `name`, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (149) and `model_has_roles`.`model_type` = 'App\Models\User';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 8 - 2025-03-04 10:42:54 [0.22ms] */
select exists(select * from `oauth_personal_access_clients`) as `exists`;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 9 - 2025-03-04 10:42:54 [0.22ms] */
select * from `oauth_personal_access_clients` order by `id` desc limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 10 - 2025-03-04 10:42:54 [0.19ms] */
select * from `oauth_clients` where `oauth_clients`.`id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 11 - 2025-03-04 10:42:54 [0.18ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 12 - 2025-03-04 10:42:54 [0.17ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 13 - 2025-03-04 10:42:54 [3.65ms] */
insert into `oauth_access_tokens` (`id`, `user_id`, `client_id`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) values ('f66bbb66b97bf4c61ea239ea6627d11d1c007778ad942eb2dbb0270637f70d562463c81398f685d8', 149, 5, '[]', 0, '2025-03-04 10:42:54', '2025-03-04 10:42:54', '2026-03-04 10:42:54');
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 14 - 2025-03-04 10:42:54 [0.33ms] */
select * from `oauth_access_tokens` where `id` = 'f66bbb66b97bf4c61ea239ea6627d11d1c007778ad942eb2dbb0270637f70d562463c81398f685d8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/login
   Query 15 - 2025-03-04 10:42:54 [3.2ms] */
update `oauth_access_tokens` set `name` = 'Secret' where `id` = 'f66bbb66b97bf4c61ea239ea6627d11d1c007778ad942eb2dbb0270637f70d562463c81398f685d8';
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:42:54 [2.24ms] */
select * from `oauth_access_tokens` where `id` = 'f66bbb66b97bf4c61ea239ea6627d11d1c007778ad942eb2dbb0270637f70d562463c81398f685d8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:42:54 [0.25ms] */
select * from `oauth_access_tokens` where `id` = 'f66bbb66b97bf4c61ea239ea6627d11d1c007778ad942eb2dbb0270637f70d562463c81398f685d8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:42:54 [0.26ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 4 - 2025-03-04 10:42:54 [0.21ms] */
select * from `users` where `id` = 149 and `users`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 5 - 2025-03-04 10:42:54 [0.13ms] */
select * from `oauth_access_tokens` where `id` = 'f66bbb66b97bf4c61ea239ea6627d11d1c007778ad942eb2dbb0270637f70d562463c81398f685d8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 6 - 2025-03-04 10:42:54 [0.12ms] */
select * from `oauth_clients` where `id` = 5 limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 7 - 2025-03-04 10:42:54 [1ms] */
select `vehicle`.`id` as `vehicle_id`, `party`.`id` as `party_id`, `vehicle`.`license_plate`, `vehicle`.`year`, `vehicle`.`odometer`, `vehicle`.`vin`, `sub_category`.`name` as `sub_category`, `classification_type`.`name` as `classification`, `make`.`name` as `make`, `model`.`name` as `model`, `vehicle_color`.`name` as `vehicle_color`, `fuel_type`.`name` as `fuel_type`, `vehicle_type`.`name` as `vehicle_type`, CASE
                WHEN party_vehicle.id IS NULL THEN "UNREGISTERED" ELSE party_vehicle.status END AS status, CASE
                WHEN person.id IS NOT NULL THEN CONCAT(person.first_name, " ", person.second_name, " ", person.third_name, " ", person.fourth_name)
                WHEN company.id IS NOT NULL THEN company.company_name
                ELSE "No Entity Found"
                END AS owner, `party`.`partyable_type` as `owner_type`, `party`.`phone_number_1` as `mobile_number_1`, `party`.`phone_number_2` as `mobile_number_2`, `party_vehicle`.`registration_date`, `vehicle`.`created_at`, `vehicle`.`updated_at` from `vehicle` left join `party_vehicle` on `party_vehicle`.`vehicle_id` = `vehicle`.`id` left join `sub_category` on `vehicle`.`sub_category_id` = `sub_category`.`id` left join `classification_type` on `party_vehicle`.`classification_id` = `classification_type`.`id` left join `model` on `vehicle`.`model_id` = `model`.`id` left join `make` on `model`.`make_id` = `make`.`id` left join `vehicle_color` on `vehicle`.`vehicle_color_id` = `vehicle_color`.`id` left join `fuel_type` on `vehicle`.`fuel_type_id` = `fuel_type`.`id` left join `vehicle_type` on `vehicle`.`vehicle_type_id` = `vehicle_type`.`id` left join `party` on `party_vehicle`.`party_id` = `party`.`id` left join `person` on `person`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Person' left join `company` on `company`.`id` = `party`.`partyable_id` and `party`.`partyable_type` = 'Company' where `license_plate` = 'WU863' and `party_vehicle`.`is_owner` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 8 - 2025-03-04 10:42:54 [0.28ms] */
select * from `vehicle` where `id` = 99422 and `provisional` = 'Y' and `vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 9 - 2025-03-04 10:42:54 [0.27ms] */
select * from `party_vehicle` where `vehicle_id` = 99422 and `is_owner` = 'Y' and `party_vehicle`.`deleted_at` is null limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 1 - 2025-03-04 10:42:54 [2.12ms] */
select * from `oauth_access_tokens` where `id` = 'f66bbb66b97bf4c61ea239ea6627d11d1c007778ad942eb2dbb0270637f70d562463c81398f685d8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 2 - 2025-03-04 10:42:54 [0.28ms] */
select * from `oauth_access_tokens` where `id` = 'f66bbb66b97bf4c61ea239ea6627d11d1c007778ad942eb2dbb0270637f70d562463c81398f685d8' limit 1;
/*==================================================*/
/* Origin (request): POST https://testtra.puntlandgov.org/api/vehicle
   Query 3 - 2025-03-04 10:42:55 [0.27ms] */
