11:59:03.015 | 2.3 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
11:59:03.018 | 1.6 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
11:59:03.024 | 1.0 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_cost_tickets" WHERE ("created_at" >= '2025-08-13 00:00:00') AND ("created_at" <= '2025-08-13 23:59:59') AND ("serial_no" ILIKE '%FY-20250813-%') AND (LENGTH(serial_no) = 17) ORDER BY "serial_no" DESC |
11:59:03.025 | 0.7 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_cost_tickets" WHERE "serial_no"='FY-20250813-00001') |
11:59:03.026 | 0.6 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2133') |
11:59:03.026 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
11:59:03.027 | 5.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_erp_cost_tickets" ("wrote_date", "serial_no", "abstract", "description", "client_id", "sales_contract_id", "supplier_id", "purchase_contract_id", "verify_type", "created_by", "created_at", "status", "is_resubmitted", "amount", "settle_amount") VALUES ('2025-08-13', 'FY-20250813-00001', '', '', 2133, NULL, NULL, NULL, 1, 1001, 'now()', 1, FALSE, '0', '0') RETURNING "id" |
11:59:03.033 | 4.5 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_action_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
11:59:03.038 | 4.0 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_action_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
11:59:03.042 | 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\ErpCostTickets', 2, 'a:25:{s:2:"id";i:2;s:9:"serial_no";s:17:"FY-20250813-00001";s:10:"wrote_date";s:10:"2025-08-13";s:9:"client_id";s:4:"2133";s:17:"sales_contract_id";s:0:"";s:11:"supplier_id";s:0:"";s:20:"purchase_contract_id";s:0:"";s:6:"status";i:1;s:8:"abstract";s:0:"";s:11:"description";s:0:"";s:11:"verify_type";s:1:"1";s:16:"next_verify_user";N;s:21:"next_stop_verify_user";N;s:9:"verify_at";N;s:7:"stop_at";N;s:18:"refuse_description";N;s:14:"is_resubmitted";b:0;s:6:"amount";i:0;s:13:"settle_amount";i:0;s:10:"created_by";i:1001;s:16:"stop_description";N;s:9:"is_settle";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;s:11:"paid_amount";N;}', '', 1001, '124.64.23.198') |
11:59:03.044 | 1.9 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20026) AND ("object_id"=2) |
11:59:03.046 | 0.3 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" WHERE "erp_cost_ticket_id"=2 |
11:59:03.046 | 2.5 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_erp_cost_ticket_handlers'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
11:59:03.049 | 3.5 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_erp_cost_ticket_handlers'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
11:59:03.052 | 1.6 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_erp_cost_ticket_handlers" ("erp_cost_ticket_id", "user_id", "amount", "pct") VALUES (2, 1001, '1', '100') |
11:59:03.054 | 0.3 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=2) AND ("term_id"=18) AND ("object_type"=9) |
11:59:03.055 | 1.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "object_type", "taxonomy_id", "out_amount", "value", "object_id", "extra_int") VALUES (18, 9, 405, '1', '', 2, 385) |
11:59:03.056 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_cost_ticket_verify_rels" WHERE ("status"=0) AND ("erp_cost_ticket_id"=2) ORDER BY "id" |
11:59:03.057 | 1.0 ms | UPDATE | UPDATE "a57be577deb434"."tbl_erp_cost_tickets" SET "amount"='1', "next_verify_user"=NULL WHERE "id"=2 |
11:59:03.058 | 0.7 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpCostTickets', 2, 'a:0:{}', '', 1001, '124.64.23.198') |
11:59:03.059 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_cost_tickets" WHERE "id"=2 |
11:59:03.059 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
11:59:03.060 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_cost_ticket_verify_rels" WHERE ("status"=0) AND ("erp_cost_ticket_id"=2) ORDER BY "id" |
11:59:03.060 | 0.7 ms | UPDATE | UPDATE "a57be577deb434"."tbl_erp_cost_tickets" SET "status"=2, "verify_at"='now()', "updated_at"='now()' WHERE "id"=2 |
11:59:03.061 | 0.7 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpCostTickets', 2, 'a:1:{s:9:"verify_at";s:5:"now()";}', '', 1001, '124.64.23.198') |
11:59:03.062 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_cost_tickets" WHERE "id"=2 |
11:59:03.063 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_cost_ticket_handlers" WHERE "erp_cost_ticket_id"=2 |
11:59:03.063 | 3.3 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_erp_ticket_change_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
11:59:03.067 | 3.5 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_erp_ticket_change_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
11:59:03.071 | 3.5 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_logs" ("status", "ticket_type", "serial_no", "wrote_date", "description", "abstract", "client_id", "supplier_id", "created_by", "created_at", "updated_at", "verify_at") VALUES (2, 20014, 'FY-20250813-00001', '2025-08-13', '', '', 2133, NULL, 1001, '2025-08-13 11:59:03', '2025-08-13 11:59:03', '2025-08-13 11:59:03.060785+08') RETURNING "id" |
11:59:03.074 | 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\ErpTicketChangeLogs', 49, 'a:13:{s:2:"id";i:49;s:9:"serial_no";s:17:"FY-20250813-00001";s:11:"ticket_type";i:20014;s:10:"wrote_date";s:10:"2025-08-13";s:6:"status";i:2;s:11:"supplier_id";N;s:9:"client_id";i:2133;s:8:"abstract";s:0:"";s:11:"description";s:0:"";s:9:"verify_at";s:29:"2025-08-13 11:59:03.060785+08";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-08-13 11:59:03";s:10:"updated_at";s:19:"2025-08-13 11:59:03";}', '', 1001, '124.64.23.198') |
11:59:03.075 | 2.4 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_erp_ticket_change_log_handlers'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
11:59:03.078 | 3.5 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_erp_ticket_change_log_handlers'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
11:59:03.082 | 5.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_erp_ticket_change_log_handlers" ("erp_ticket_change_log_id", "user_id") VALUES (49, 1001) |
11:59:03.088 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
11:59:03.089 | 3.0 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_object_change_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
11:59:03.092 | 3.4 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_object_change_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
11:59:03.096 | 1.0 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 2, 20014, 1001, '2025-08-13 11:59:03', '{"id":2,"serial_no":"FY-20250813-00001","wrote_date":"2025-08-13","client_id":2133,"sales_contract_id":null,"supplier_id":null,"purchase_contract_id":null,"status":2,"abstract":"","description":"","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"1","settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2025-08-13 11:59:03","updated_at":"1970-01-01 08:00:00","paid_amount":null}', '{"id":2,"serial_no":"FY-20250813-00001","wrote_date":"2025-08-13","client_id":2133,"sales_contract_id":null,"supplier_id":null,"purchase_contract_id":null,"status":2,"abstract":"","description":"","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"1","settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2025-08-13 11:59:03","updated_at":"1970-01-01 08:00:00","paid_amount":null}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u8d39\u7528\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
11:59:03.097 | 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\ObjectChangeLogs', 553551, 'a:13:{s:2:"id";i:553551;s:9:"object_id";i:2;s:11:"object_type";i:20014;s:9:"target_id";N;s:18:"target_object_type";N;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:532:"{"id":2,"serial_no":"FY-20250813-00001","wrote_date":"2025-08-13","client_id":2133,"sales_contract_id":null,"supplier_id":null,"purchase_contract_id":null,"status":2,"abstract":"","description":"","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"1","settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2025-08-13 11:59:03","updated_at":"1970-01-01 08:00:00","paid_amount":null}";s:9:"new_value";s:532:"{"id":2,"serial_no":"FY-20250813-00001","wrote_date":"2025-08-13","client_id":2133,"sales_contract_id":null,"supplier_id":null,"purchase_contract_id":null,"status":2,"abstract":"","description":"","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"now()","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"1","settle_amount":"0","created_by":1001,"stop_description":null,"is_settle":false,"created_at":"2025-08-13 11:59:03","updated_at":"1970-01-01 08:00:00","paid_amount":null}";s:11:"description";s:99:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u8d39\u7528\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-08-13 11:59:03";s:9:"is_delete";N;}', '', 1001, '124.64.23.198') |
11:59:03.098 | 1.0 ms | INSERT | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-cost-ticket/save-new', '{"ErpCostTickets":{"id":"","auto_id":"2133","auto_name":"\u5317\u4eac\u5e02\u4e2d\u4fdd\u7f51\u76fe\u79d1\u6280\u6709\u9650\u516c\u53f8","auto_type":"client","auto_search_id":"","auto_search_name":"","wrote_date":"2025-08-13","serial_no":"FY-20250813-00001","abstract":"","description":"","client_id":"2133","client_name":"\u5317\u4eac\u5e02\u4e2d\u4fdd\u7f51\u76fe\u79d1\u6280\u6709\u9650\u516c\u53f8","sales_contract_id":"","sales_contract_name":"","supplier_id":"","supplier_name":"","purchase_contract_id":"","purchase_contract_name":"","files":"","erpCostTicketVerifyRels":"","erpCostTicketAmounts":[{"id":"405","amount":"1","description":"","parent_id":"385"}],"erpCostTicketHandlers":[{"user_id":"1001","amount":"1","pct":"100"}]},"web_access_token":"dPFEBxDCNesd10Ar-2x3OenPGyrzQr4P"}', '{"code":2000,"result":{"id":2},"status":1,"msg":[{"name":"success","success":"\u65b0\u8d39\u7528\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0}', FALSE, '2025-08-13 11:59:03') RETURNING "id" |