09:52:53.375 | 3.4 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH' |
09:52:53.379 | 1.1 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
09:52:53.386 | 0.7 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815') |
09:52:53.387 | 0.4 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id"='5245') |
09:52:53.388 | 0.5 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3811') |
09:52:53.388 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
09:52:53.389 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1017') |
09:52:53.389 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_task_groups" WHERE "id"='199') |
09:52:53.390 | 1.9 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE ("created_at" >= '2025-07-11 00:00:00') AND ("created_at" < '2025-07-12 00:00:00') ORDER BY "id" DESC |
09:52:53.392 | 12.1 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_cases" ("case_type", "alarm_before", "client_id", "contact_id", "description", "last_engineer", "project_id", "spent_time", "start_at", "task_group_id", "need_push", "created_by", "created_at", "case_no") VALUES (1, '00:30:00', 2815, 5245, '经常娜娜从哪方面', 1017, 3811, '3 hour', '2025-07-11 08:00', 199, FALSE, 1000, '2025-07-11 09:52:53', 'PS250711001') RETURNING "id" |
09:52:53.404 | 1.3 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\Cases', 8279, 'a:24:{s:2:"id";i:8279;s:9:"client_id";s:4:"2815";s:10:"contact_id";s:4:"5245";s:10:"project_id";s:4:"3811";s:13:"last_engineer";s:4:"1017";s:9:"case_type";s:1:"1";s:11:"case_status";N;s:8:"start_at";s:19:"2025-07-11 08:00:00";s:9:"closed_at";N;s:6:"points";N;s:18:"deduct_points_from";N;s:10:"created_by";i:1000;s:10:"created_at";s:19:"2025-07-11 09:52:53";s:10:"updated_at";N;s:7:"case_no";s:11:"PS250711001";s:11:"description";s:24:"经常娜娜从哪方面";s:10:"spent_time";s:6:"3 hour";s:12:"alarm_before";s:8:"00:30:00";s:10:"suspend_at";N;s:12:"completed_at";N;s:20:"mp_submit_contact_id";N;s:13:"attachment_id";N;s:9:"need_push";b:0;s:13:"task_group_id";s:3:"199";}', '', 1000, '223.104.40.121') |
09:52:53.407 | 2.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=25) AND ("object_id"=8279) |
09:52:53.409 | 1.1 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_attachement_relationships" ("object_type", "object_id", "attachment_id") VALUES (25, 8279, 24866) |
09:52:53.411 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8279) |
09:52:53.411 | 0.4 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_services" WHERE "id"=273) |
09:52:53.412 | 1.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_case_services" ("case_id", "service_id", "quantity") VALUES (8279, 273, 1) RETURNING "id" |
09:52:53.414 | 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\CaseServices', 13464, 'a:4:{s:2:"id";i:13464;s:7:"case_id";i:8279;s:10:"service_id";i:273;s:8:"quantity";s:1:"1";}', '', 1000, '223.104.40.121') |
09:52:53.417 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8279) |
09:52:53.418 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1017') |
09:52:53.418 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
09:52:53.419 | 1.5 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_case_assignments" ("case_id", "engineer_id", "assignment_status", "points", "assigned_by") VALUES (8279, 1017, 1, 0, 1000) RETURNING "id" |
09:52:53.420 | 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\CaseAssignments', 8320, 'a:9:{s:2:"id";i:8320;s:7:"case_id";i:8279;s:11:"engineer_id";s:4:"1017";s:17:"assignment_status";i:1;s:6:"points";i:0;s:11:"assigned_by";i:1000;s:11:"assigned_at";N;s:10:"updated_at";N;s:7:"percent";N;}', '', 1000, '223.104.40.121') |
09:52:53.421 | 0.9 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815' |
09:52:53.423 | 0.9 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_case_services" WHERE "case_id"=8279 |
09:52:53.424 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_services" WHERE "id"=273 |
09:52:53.425 | 1.1 ms | UPDATE | UPDATE "a57be577deb434"."tbl_cases" SET "deduct_points_from"=1004, "points"=150, "case_status"=2 WHERE "id"=8279 |
09:52:53.426 | 0.9 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\Cases', 8279, 'a:4:{s:8:"start_at";s:19:"2025-07-11 08:00:00";s:11:"case_status";i:2;s:6:"points";i:150;s:18:"deduct_points_from";i:1004;}', '', 1000, '223.104.40.121') |
09:52:53.427 | 0.3 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_case_carbon_copy_rels" WHERE "case_id"=8279 |
09:52:53.428 | 1.3 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_case_carbon_copy_rels" ("case_id", "user_id") VALUES (8279, 5250), (8279, 5016) |
09:52:53.430 | 6.2 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_case_remind_dates'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
09:52:53.436 | 15.9 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_case_remind_dates'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
09:52:53.453 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8279) |
09:52:53.453 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8279) |
09:52:53.454 | 4.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_case_remind_dates" ("is_remind", "case_id", "alarm_before", "time_at") VALUES (FALSE, 8279, 5, '2025-07-11 16:00:00') RETURNING "id" |
09:52:53.458 | 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\CaseRemindDates', 190, 'a:5:{s:2:"id";i:190;s:7:"case_id";i:8279;s:12:"alarm_before";s:1:"5";s:9:"is_remind";b:0;s:7:"time_at";s:19:"2025-07-11 16:00:00";}', '', 1000, '223.104.40.121') |
09:52:53.459 | 0.4 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_case_remind_receivers" WHERE "remind_date_id"=190 |
09:52:53.460 | 3.6 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_case_remind_receivers'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
09:52:53.464 | 15.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_case_remind_receivers'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
09:52:53.479 | 4.0 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_case_remind_receivers" ("remind_date_id", "user_id") VALUES (190, 5016), (190, 5329) |
09:52:53.485 | 0.4 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815') |
09:52:53.486 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1017') |
09:52:53.486 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8279) |
09:52:53.487 | 1.7 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_calendars" ("title", "end_at", "start_at", "is_public", "created_by", "client_id", "alarm_before", "case_id", "is_remind", "is_system", "is_sync") VALUES ('技术方案-一级文档:经常娜娜从哪方面', '2025-07-11 11:00:00', '2025-07-11 08:00:00', 1, 1017, 2815, '00:30:00', 8279, FALSE, FALSE, FALSE) RETURNING "id" |
09:52:53.489 | 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\Calendars', 276919, 'a:17:{s:2:"id";i:276919;s:9:"client_id";s:4:"2815";s:5:"title";s:50:"技术方案-一级文档:经常娜娜从哪方面";s:11:"description";N;s:8:"start_at";s:19:"2025-07-11 08:00:00";s:6:"end_at";s:19:"2025-07-11 11:00:00";s:9:"is_public";i:1;s:10:"created_by";s:4:"1017";s:10:"created_at";N;s:12:"alarm_before";s:8:"00:30:00";s:9:"is_remind";b:0;s:18:"system_calendar_id";N;s:9:"is_system";b:0;s:7:"is_sync";b:0;s:7:"case_id";i:8279;s:11:"schedule_id";N;s:10:"project_id";N;}', '', 1000, '223.104.40.121') |
09:52:53.490 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8279 |
09:52:53.490 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
09:52:53.491 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1017' |
09:52:53.491 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
09:52:53.492 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_case_carbon_copy_rels" WHERE "case_id"=8279 |
09:52:53.493 | 4.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_comments'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
09:52:53.497 | 18.9 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_comments'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
09:52:53.517 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8279 |
09:52:53.518 | 0.4 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
09:52:53.518 | 1.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1000, '18', 8279, '曹永生为车明飞新建了一个Case', TRUE, '经常娜娜从哪方面') RETURNING "id" |
09:52:53.520 | 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\Comments', 170394, 'a:11:{s:2:"id";i:170394;s:9:"object_id";i:8279;s:11:"object_type";s:2:"18";s:6:"parent";N;s:11:"description";s:40:"曹永生为车明飞新建了一个Case";s:10:"created_by";i:1000;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:24:"经常娜娜从哪方面";}', '', 1000, '223.104.40.121') |
09:52:53.521 | 3.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_unread_comments'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
09:52:53.525 | 16.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_unread_comments'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
09:52:53.542 | 1.8 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (8279, '18', 170394, '1017'), (8279, '18', 170394, 1004), (8279, '18', 170394, 5250), (8279, '18', 170394, 5016) |
09:52:53.544 | 0.5 ms | SELECT | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id" IN ('1017', 1004, 5250, 5016)) AND ("id" != 1000) AND (channel_id IS NOT NULL) |
09:52:53.546 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"=8279 |
09:52:53.546 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
09:52:53.549 | 0.7 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3811 |
09:52:53.552 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
09:52:53.553 | 1.3 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', 8279, 18, 1000, '2025-07-11 09:52:53', '{"id":8279,"client_id":2815,"contact_id":5245,"project_id":3811,"last_engineer":1017,"case_type":1,"case_status":2,"start_at":"2025-07-11 08:00:00","closed_at":null,"points":150,"deduct_points_from":1004,"created_by":1000,"created_at":"2025-07-11 09:52:53","updated_at":"2025-07-11 09:52:53","case_no":"PS250711001","description":"\u7ecf\u5e38\u5a1c\u5a1c\u4ece\u54ea\u65b9\u9762","spent_time":"3 hour","alarm_before":"00:30:00","suspend_at":null,"completed_at":null,"mp_submit_contact_id":null,"attachment_id":null,"need_push":false,"task_group_id":199}', '{"id":8279,"client_id":2815,"contact_id":5245,"project_id":3811,"last_engineer":1017,"case_type":1,"case_status":2,"start_at":"2025-07-11 08:00:00","closed_at":null,"points":150,"deduct_points_from":1004,"created_by":1000,"created_at":"2025-07-11 09:52:53","updated_at":"2025-07-11 09:52:53","case_no":"PS250711001","description":"\u7ecf\u5e38\u5a1c\u5a1c\u4ece\u54ea\u65b9\u9762","spent_time":"3 hour","alarm_before":"00:30:00","suspend_at":null,"completed_at":null,"mp_submit_contact_id":null,"attachment_id":null,"need_push":false,"task_group_id":199}', '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"Case","d4":[]}') RETURNING "id" |
09:52:53.554 | 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\ObjectChangeLogs', 510480, 'a:13:{s:2:"id";i:510480;s:9:"object_id";i:8279;s:11:"object_type";i:18;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:554:"{"id":8279,"client_id":2815,"contact_id":5245,"project_id":3811,"last_engineer":1017,"case_type":1,"case_status":2,"start_at":"2025-07-11 08:00:00","closed_at":null,"points":150,"deduct_points_from":1004,"created_by":1000,"created_at":"2025-07-11 09:52:53","updated_at":"2025-07-11 09:52:53","case_no":"PS250711001","description":"\u7ecf\u5e38\u5a1c\u5a1c\u4ece\u54ea\u65b9\u9762","spent_time":"3 hour","alarm_before":"00:30:00","suspend_at":null,"completed_at":null,"mp_submit_contact_id":null,"attachment_id":null,"need_push":false,"task_group_id":199}";s:9:"new_value";s:554:"{"id":8279,"client_id":2815,"contact_id":5245,"project_id":3811,"last_engineer":1017,"case_type":1,"case_status":2,"start_at":"2025-07-11 08:00:00","closed_at":null,"points":150,"deduct_points_from":1004,"created_by":1000,"created_at":"2025-07-11 09:52:53","updated_at":"2025-07-11 09:52:53","case_no":"PS250711001","description":"\u7ecf\u5e38\u5a1c\u5a1c\u4ece\u54ea\u65b9\u9762","spent_time":"3 hour","alarm_before":"00:30:00","suspend_at":null,"completed_at":null,"mp_submit_contact_id":null,"attachment_id":null,"need_push":false,"task_group_id":199}";s:11:"description";s:73:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"Case","d4":[]}";s:10:"created_by";i:1000;s:10:"created_at";s:19:"2025-07-11 09:52:53";s:9:"is_delete";N;}', '', 1000, '223.104.40.121') |
09:52:53.555 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
09:52:53.556 | 1.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "users", "description") VALUES (1, 'create', 8279, 18, 1000, '2025-07-11 09:52:53', '{"form_caseCarbonCopyRels":null,"keyword":"","from":"","to":"","period":"","unread":0}', '{"form_caseCarbonCopyRels":null,"keyword":"","from":"","to":"","period":"","unread":0}', array[1004,1017], '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"Case","d4":[]}') RETURNING "id" |
09:52:53.558 | 1.2 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\UserActionLogs', 137110, 'a:15:{s:2:"id";i:137110;s:9:"object_id";i:8279;s:11:"object_type";i:18;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:86:"{"form_caseCarbonCopyRels":null,"keyword":"","from":"","to":"","period":"","unread":0}";s:9:"new_value";s:86:"{"form_caseCarbonCopyRels":null,"keyword":"","from":"","to":"","period":"","unread":0}";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:16:"array[1004,1017]";s:6:"params";a:0:{}}s:11:"description";s:73:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"Case","d4":[]}";s:10:"created_by";i:1000;s:10:"created_at";s:19:"2025-07-11 09:52:53";s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1000, '223.104.40.121') |
09:52:53.559 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
09:52:53.564 | 1.3 ms | UPDATE | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=2815 |
09:52:53.566 | 16.0 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2815) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
09:52:53.583 | 3.4 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2815, 1004, 'now()', NULL) RETURNING "id" |
09:52:53.586 | 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\ClientAmChangeLogs', 165230, 'a:5:{s:2:"id";i:165230;s:9:"client_id";i:2815;s:9:"sales_rep";i:1004;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '223.104.40.121') |
09:52:53.587 | 0.8 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\Clients', 2815, 'a:0:{}', '', 1000, '223.104.40.121') |
09:52:53.588 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
09:52:53.589 | 1.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (1, 'create', 2815, 10, 8279, 18, 1000, '[8279]', '[8279]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}') RETURNING "id" |
09:52:53.591 | 1.1 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', 510481, 'a:13:{s:2:"id";i:510481;s:9:"object_id";i:2815;s:11:"object_type";i:10;s:9:"target_id";i:8279;s:18:"target_object_type";i:18;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[8279]";s:9:"new_value";s:6:"[8279]";s:11:"description";s:103:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '223.104.40.121') |
09:52:53.592 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3811 |
09:52:53.593 | 1.0 ms | UPDATE | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=3811 |
09:52:53.595 | 1.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3811) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
09:52:53.596 | 0.8 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\Projects', 3811, 'a:0:{}', '', 1000, '223.104.40.121') |
09:52:53.597 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
09:52:53.598 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
09:52:53.598 | 0.8 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (1, 'create', 3811, 1, 8279, 18, 1000, '[8279]', '[8279]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}') RETURNING "id" |
09:52:53.599 | 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', 510482, 'a:13:{s:2:"id";i:510482;s:9:"object_id";i:3811;s:11:"object_type";i:1;s:9:"target_id";i:8279;s:18:"target_object_type";i:18;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[8279]";s:9:"new_value";s:6:"[8279]";s:11:"description";s:103:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '223.104.40.121') |
09:52:53.600 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
09:52:53.600 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
09:52:53.601 | 0.8 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "users", "description") VALUES (1, 'create', 3811, 1, 8279, 18, 1000, '8279', '8279', array[1004], '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}') RETURNING "id" |
09:52:53.602 | 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\UserActionLogs', 137111, 'a:15:{s:2:"id";i:137111;s:9:"object_id";i:3811;s:11:"object_type";i:1;s:9:"target_id";i:8279;s:18:"target_object_type";i:18;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:4:"8279";s:9:"new_value";s:4:"8279";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[1004]";s:6:"params";a:0:{}}s:11:"description";s:103:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1000, '223.104.40.121') |
09:52:53.603 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_task_groups" WHERE "id"=199 |
09:52:53.603 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
09:52:53.604 | 0.8 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (1, 'create', 199, 102, 8279, 18, 1000, '[8279]', '[8279]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}') RETURNING "id" |
09:52:53.605 | 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', 510483, 'a:13:{s:2:"id";i:510483;s:9:"object_id";i:199;s:11:"object_type";i:102;s:9:"target_id";i:8279;s:18:"target_object_type";i:18;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[8279]";s:9:"new_value";s:6:"[8279]";s:11:"description";s:103:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"Case","d4":["Case\u7f16\u53f7:PS250711001"]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '223.104.40.121') |
09:52:53.606 | 0.4 ms | SELECT | SELECT * FROM "global"."tbl_enterprises" WHERE "id"=2 |
09:52:53.608 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815' |
09:52:53.609 | 1.1 ms | SELECT | SELECT COUNT(*) FROM "a57be577deb434"."tbl_cases" WHERE ("case_type"=1) AND ("case_status"=5) AND ("created_at" >= '2025-01-01 00:00:00') AND ("created_at" <= '2025-12-31 23:59:59') AND ("client_id"=2815) |
09:52:53.611 | 0.9 ms | SELECT | SELECT COUNT(*) FROM "a57be577deb434"."tbl_cases" WHERE ("case_type"=2) AND ("case_status"=5) AND ("created_at" >= '2025-01-01 00:00:00') AND ("created_at" <= '2025-12-31 23:59:59') AND ("client_id"=2815) |
09:52:53.612 | 7.9 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=2815) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
09:52:53.620 | 0.9 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (2815, 1004, 'now()', NULL) RETURNING "id" |
09:52:53.621 | 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\ClientAmChangeLogs', 165231, 'a:5:{s:2:"id";i:165231;s:9:"client_id";i:2815;s:9:"sales_rep";i:1004;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '223.104.40.121') |
09:52:53.622 | 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\Clients', 2815, 'a:0:{}', '', 1000, '223.104.40.121') |
09:52:53.624 | 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, 2, 1141, 'v2/case/save-new', '{"Cases":{"alarm_before":"00:30:00","attachmentFiles":["24866"],"caseRemindDates":{"new":[{"alarm_before":"5","users":["5016","5329"]}]},"caseServices":{"273":"1"},"case_type":"1","client_id":"2815","contact_id":"5245","description":"\u7ecf\u5e38\u5a1c\u5a1c\u4ece\u54ea\u65b9\u9762","form_caseCarbonCopyRels":["5250","5016"],"last_engineer":"1017","project_id":"3811","spent_time":"3 hour","start_at":"2025-07-11 08:00","task_group_id":"199"},"access_token":"oTtlK_p5ZOBpvQJd1tf5AoUbRaTdQ7qH","device_type":"2","posttime":"1752198784","token":"c683cbc966b00614bfd06923310e7d8d","version_code":"1141"}', '{"code":200,"data":{"id":8279},"status":1,"msg":[{"name":"success","success":"\u65b0Case\u5df2\u521b\u5efa\u6210\u529f","error":""}]}', FALSE, '2025-07-11 09:52:53') RETURNING "id" |