17:28:53.872 | 2.7 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='NwDlebRkXSJbZFNIiImHKy4sVWr3Lufc' |
17:28:53.876 | 1.0 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004 |
17:28:53.879 | 0.5 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='2815') |
17:28:53.880 | 0.5 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3822') |
17:28:53.880 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004) |
17:28:53.880 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004) |
17:28:53.881 | 5.1 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_schedules" ("alarm_before", "client_id", "end_at", "is_public", "project_id", "schedule_title", "start_at", "creator", "created_by") VALUES ('00:05:00', 2815, '2025-07-13 18:00', 1, 3822, '回复回复娜娜', '2025-07-13 17:28', 1004, 1004) RETURNING "id" |
17:28:53.886 | 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\Schedules', 17705, 'a:24:{s:2:"id";i:17705;s:9:"client_id";s:4:"2815";s:14:"schedule_title";s:18:"回复回复娜娜";s:11:"description";N;s:13:"schedule_week";N;s:8:"start_at";s:19:"2025-07-13 17:28:00";s:11:"complete_at";N;s:20:"complete_description";N;s:11:"is_complete";N;s:12:"alarm_before";s:8:"00:05:00";s:10:"created_by";s:4:"1004";s:10:"created_at";N;s:9:"is_closed";N;s:9:"is_remind";N;s:9:"time_type";N;s:12:"schedule_end";N;s:9:"repeat_id";N;s:6:"end_at";s:19:"2025-07-13 18:00:00";s:9:"is_public";s:1:"1";s:18:"system_calendar_id";N;s:7:"creator";i:1004;s:10:"project_id";s:4:"3822";s:10:"updated_at";N;s:10:"set_top_at";N;}', '', 1004, '120.244.156.33') |
17:28:53.887 | 1.2 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=9) AND ("object_id"=17705) |
17:28:53.889 | 0.9 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_attachement_relationships" ("object_type", "object_id", "attachment_id") VALUES (9, 17705, 24892) |
17:28:53.890 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_schedule_carbon_copy_rels" WHERE "schedule_id"=17705 |
17:28:53.890 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1004' |
17:28:53.891 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_schedules" WHERE "id"=17705 |
17:28:53.892 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004) |
17:28:53.892 | 0.9 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1004, '9', 17705, '伊峻辰新建了一条待办事项', TRUE, '回复回复娜娜') RETURNING "id" |
17:28:53.893 | 2.4 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', 170502, 'a:11:{s:2:"id";i:170502;s:9:"object_id";i:17705;s:11:"object_type";s:1:"9";s:6:"parent";N;s:11:"description";s:36:"伊峻辰新建了一条待办事项";s:10:"created_by";i:1004;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:18:"回复回复娜娜";}', '', 1004, '120.244.156.33') |
17:28:53.896 | 0.2 ms | SELECT | SELECT "channel_id" FROM "global"."tbl_logins" WHERE (0=1) AND ("id" != 1004) AND (channel_id IS NOT NULL) |
17:28:53.898 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_schedules" WHERE "id"=17705 |
17:28:53.898 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004 |
17:28:53.899 | 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', 17705, 9, 1004, '2025-07-13 17:28:53', '{"id":17705,"client_id":2815,"schedule_title":"\u56de\u590d\u56de\u590d\u5a1c\u5a1c","description":null,"schedule_week":null,"start_at":"2025-07-13 17:28:00","complete_at":null,"complete_description":null,"is_complete":false,"alarm_before":"00:05:00","created_by":1004,"created_at":"2025-07-13 17:28:53","is_closed":false,"is_remind":false,"time_type":null,"schedule_end":null,"repeat_id":null,"end_at":"2025-07-13 18:00:00","is_public":1,"system_calendar_id":null,"creator":1004,"project_id":3822,"updated_at":"2025-07-13 17:28:53","set_top_at":null}', '{"id":17705,"client_id":2815,"schedule_title":"\u56de\u590d\u56de\u590d\u5a1c\u5a1c","description":null,"schedule_week":null,"start_at":"2025-07-13 17:28:00","complete_at":null,"complete_description":null,"is_complete":false,"alarm_before":"00:05:00","created_by":1004,"created_at":"2025-07-13 17:28:53","is_closed":false,"is_remind":false,"time_type":null,"schedule_end":null,"repeat_id":null,"end_at":"2025-07-13 18:00:00","is_public":1,"system_calendar_id":null,"creator":1004,"project_id":3822,"updated_at":"2025-07-13 17:28:53","set_top_at":null}', '{"d1":"\u4f0a\u5cfb\u8fb0","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[]}') RETURNING "id" |
17:28:53.900 | 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', 510833, 'a:13:{s:2:"id";i:510833;s:9:"object_id";i:17705;s:11:"object_type";i:9;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:551:"{"id":17705,"client_id":2815,"schedule_title":"\u56de\u590d\u56de\u590d\u5a1c\u5a1c","description":null,"schedule_week":null,"start_at":"2025-07-13 17:28:00","complete_at":null,"complete_description":null,"is_complete":false,"alarm_before":"00:05:00","created_by":1004,"created_at":"2025-07-13 17:28:53","is_closed":false,"is_remind":false,"time_type":null,"schedule_end":null,"repeat_id":null,"end_at":"2025-07-13 18:00:00","is_public":1,"system_calendar_id":null,"creator":1004,"project_id":3822,"updated_at":"2025-07-13 17:28:53","set_top_at":null}";s:9:"new_value";s:551:"{"id":17705,"client_id":2815,"schedule_title":"\u56de\u590d\u56de\u590d\u5a1c\u5a1c","description":null,"schedule_week":null,"start_at":"2025-07-13 17:28:00","complete_at":null,"complete_description":null,"is_complete":false,"alarm_before":"00:05:00","created_by":1004,"created_at":"2025-07-13 17:28:53","is_closed":false,"is_remind":false,"time_type":null,"schedule_end":null,"repeat_id":null,"end_at":"2025-07-13 18:00:00","is_public":1,"system_calendar_id":null,"creator":1004,"project_id":3822,"updated_at":"2025-07-13 17:28:53","set_top_at":null}";s:11:"description";s:93:"{"d1":"\u4f0a\u5cfb\u8fb0","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[]}";s:10:"created_by";i:1004;s:10:"created_at";s:19:"2025-07-13 17:28:53";s:9:"is_delete";N;}', '', 1004, '120.244.156.33') |
17:28:53.901 | 0.6 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
17:28:53.903 | 1.2 ms | UPDATE | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=2815 |
17:28:53.904 | 9.2 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 |
17:28:53.913 | 1.0 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" |
17:28:53.915 | 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', 165361, 'a:5:{s:2:"id";i:165361;s:9:"client_id";i:2815;s:9:"sales_rep";i:1004;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1004, '120.244.156.33') |
17:28:53.916 | 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:{}', '', 1004, '120.244.156.33') |
17:28:53.916 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004 |
17:28:53.917 | 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', 2815, 10, 17705, 9, 1004, '[17705]', '[17705]', '{"d1":"\u4f0a\u5cfb\u8fb0","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}') RETURNING "id" |
17:28:53.918 | 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', 510834, 'a:13:{s:2:"id";i:510834;s:9:"object_id";i:2815;s:11:"object_type";i:10;s:9:"target_id";i:17705;s:18:"target_object_type";i:9;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:7:"[17705]";s:9:"new_value";s:7:"[17705]";s:11:"description";s:95:"{"d1":"\u4f0a\u5cfb\u8fb0","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}";s:10:"created_by";i:1004;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1004, '120.244.156.33') |
17:28:53.919 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
17:28:53.919 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004 |
17:28:53.920 | 1.0 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', 2815, 10, 17705, 9, 1004, '17705', '17705', array[1004], '{"d1":"\u4f0a\u5cfb\u8fb0","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}') RETURNING "id" |
17:28:53.921 | 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', 137234, 'a:15:{s:2:"id";i:137234;s:9:"object_id";i:2815;s:11:"object_type";i:10;s:9:"target_id";i:17705;s:18:"target_object_type";i:9;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:5:"17705";s:9:"new_value";s:5:"17705";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:95:"{"d1":"\u4f0a\u5cfb\u8fb0","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}";s:10:"created_by";i:1004;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1004, '120.244.156.33') |
17:28:53.922 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3822 |
17:28:53.923 | 0.9 ms | UPDATE | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=3822 |
17:28:53.924 | 1.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3822) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:28:53.926 | 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\Projects', 3822, 'a:0:{}', '', 1004, '120.244.156.33') |
17:28:53.927 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
17:28:53.927 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004 |
17:28:53.927 | 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', 3822, 1, 17705, 9, 1004, '[17705]', '[17705]', '{"d1":"\u4f0a\u5cfb\u8fb0","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}') RETURNING "id" |
17:28:53.928 | 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', 510835, 'a:13:{s:2:"id";i:510835;s:9:"object_id";i:3822;s:11:"object_type";i:1;s:9:"target_id";i:17705;s:18:"target_object_type";i:9;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:7:"[17705]";s:9:"new_value";s:7:"[17705]";s:11:"description";s:95:"{"d1":"\u4f0a\u5cfb\u8fb0","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}";s:10:"created_by";i:1004;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1004, '120.244.156.33') |
17:28:53.929 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3822 |
17:28:53.930 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=2815 |
17:28:53.930 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1004 |
17:28:53.930 | 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', 3822, 1, 17705, 9, 1004, '17705', '17705', array[1004], '{"d1":"\u4f0a\u5cfb\u8fb0","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}') RETURNING "id" |
17:28:53.931 | 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', 137235, 'a:15:{s:2:"id";i:137235;s:9:"object_id";i:3822;s:11:"object_type";i:1;s:9:"target_id";i:17705;s:18:"target_object_type";i:9;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:5:"17705";s:9:"new_value";s:5:"17705";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:95:"{"d1":"\u4f0a\u5cfb\u8fb0","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}";s:10:"created_by";i:1004;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1004, '120.244.156.33') |
17:28:53.932 | 3.9 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_schedule_head_of_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:28:53.936 | 9.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_schedule_head_of_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
17:28:53.946 | 3.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_schedule_head_of_rels" ("user_id", "schedule_id") VALUES (1004, 17705) |
17:28:53.949 | 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', 1004, 2, 1141, 'v2/schedule/save-new', '{"Schedules":{"alarm_before":"00:05:00","attachmentFiles":["24892"],"client_id":"2815","end_at":"2025-07-13 18:00","form_scheduleCarbonCopyRels":"","headUsers":["1004"],"is_public":"1","project_id":"3822","schedule_title":"\u56de\u590d\u56de\u590d\u5a1c\u5a1c","start_at":"2025-07-13 17:28"},"access_token":"NwDlebRkXSJbZFNIiImHKy4sVWr3Lufc","device_type":"2","posttime":"1752398976","token":"547c6887c2a367d4d9f576e9431390bd","version_code":"1141"}', '{"code":200,"data":{"id":null},"status":1,"msg":[{"name":"success","success":"\u65b0\u5f85\u529e\u4e8b\u9879\u5df2\u521b\u5efa\u6210\u529f","error":""}]}', FALSE, '2025-07-13 17:28:53') RETURNING "id" |