15:54:11.444 | 2.6 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='hLtdglndkreOmfJjmOe7Mve0kQO2lAQu' |
15:54:11.447 | 1.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
15:54:11.452 | 1.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "name"='' |
15:54:11.453 | 6.6 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_reimbursements" ("status", "amount", "occurrence_at", "created_by") VALUES (0, '5.00', NULL, 1000) RETURNING "id" |
15:54:11.460 | 1.0 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Reimbursements', 8204, 'a:18:{s:2:"id";i:8204;s:6:"status";i:0;s:6:"amount";s:4:"5.00";s:13:"occurrence_at";N;s:18:"settle_accounts_at";N;s:18:"settle_accounts_by";N;s:11:"description";N;s:10:"created_by";i:1000;s:10:"created_at";N;s:10:"updated_at";N;s:18:"refuse_description";N;s:9:"client_id";N;s:10:"project_id";N;s:16:"next_verify_user";N;s:13:"is_resubmited";N;s:11:"work_log_id";N;s:12:"pre_sales_id";N;s:19:"implement_record_id";N;}', '', 1000, '114.244.128.96') |
15:54:11.462 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_attachments" WHERE "id"='28230' |
15:54:11.510 | 1.3 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_attachments" ("name", "path", "orig_name", "extension", "file_type", "file_size", "ip_address", "created_by") VALUES ('188adf5d-c611-3930-a2f4-7ef83149b775', '/var/www/beta/web/files/protected/a57be577deb434/2025/09/', 'img_20250918_155350.jpg', 'jpg', 'application/octet-stream', 142994, '114.244.128.96', 1000) RETURNING "id" |
15:54:11.512 | 0.9 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Attachments', 28231, 'a:10:{s:2:"id";i:28231;s:9:"orig_name";s:23:"img_20250918_155350.jpg";s:4:"path";s:57:"/var/www/beta/web/files/protected/a57be577deb434/2025/09/";s:4:"name";s:36:"188adf5d-c611-3930-a2f4-7ef83149b775";s:9:"extension";s:3:"jpg";s:9:"file_size";i:142994;s:10:"ip_address";s:14:"114.244.128.96";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"file_type";s:24:"application/octet-stream";}', '', 1000, '114.244.128.96') |
15:54:11.513 | 1.5 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_attachement_relationships" ("object_type", "object_id", "attachment_id") VALUES (19, 8204, 28231) RETURNING "id" |
15:54:11.514 | 0.7 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\AttachmentRelationships', 49619, 'a:4:{s:2:"id";i:49619;s:11:"object_type";i:19;s:9:"object_id";i:8204;s:13:"attachment_id";i:28231;}', '', 1000, '114.244.128.96') |
15:54:11.515 | 4.8 ms | SELECT | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_reimbursement_invoice_numbers'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
15:54:11.520 | 4.2 ms | SELECT | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_reimbursement_invoice_numbers'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
15:54:11.525 | 4.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_reimbursement_invoice_numbers" ("op", "attachment_id", "reimbursement_id", "number") VALUES (NULL, 28231, 8204, '11100208115114867884') RETURNING "id" |
15:54:11.529 | 0.8 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ReimbursementInvoiceNumbers', 26, 'a:5:{s:2:"id";i:26;s:16:"reimbursement_id";i:8204;s:13:"attachment_id";i:28231;s:2:"op";N;s:6:"number";s:20:"11100208115114867884";}', '', 1000, '114.244.128.96') |
15:54:11.531 | 1.0 ms | INSERT | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 0, 266, 'v2/reimbursement/save-recognize', '{"access_token":"hLtdglndkreOmfJjmOe7Mve0kQO2lAQu","InvoiceRecognize":[{"saler_name":"","invoice_duplicated":"1","occurrence_at":"","x0":"159","x1":"1467","x2":"1511","x3":"84","y0":"635","y1":"630","y2":"1493","y3":"1494","amount":"5.00","purchaser_name":"","serial_no":"11100208115114867884","attachment_id":"28230"}],"device_type":"0","version_code":"266","token":"c239c6e3dda2660e68d90e7a8f82e2ff","posttime":"1758182052"}', '{"code":200,"data":{"success":1},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-09-18 15:54:11') RETURNING "id" |