17:09:09.544 | 2.6 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='gIBfXHaGAAjf2tBIfgqsDfRNPly9E9om' |
17:09:09.547 | 1.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:09:09.551 | 0.6 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661') |
17:09:09.551 | 0.5 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='1791') |
17:09:09.552 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1000') |
17:09:09.552 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
17:09:09.553 | 6.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_schedules" ("client_id", "schedule_title", "start_at", "end_at", "alarm_before", "is_public", "created_by", "project_id", "creator") VALUES (1661, '好吧宝贝', '2025-09-12 09:00', '2025-09-12 18:00', NULL, 1, 1000, 1791, 1000) RETURNING "id" |
17:09:09.559 | 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', 17942, 'a:24:{s:2:"id";i:17942;s:9:"client_id";s:4:"1661";s:14:"schedule_title";s:12:"好吧宝贝";s:11:"description";N;s:13:"schedule_week";N;s:8:"start_at";s:19:"2025-09-12 09:00:00";s:11:"complete_at";N;s:20:"complete_description";N;s:11:"is_complete";N;s:12:"alarm_before";N;s:10:"created_by";s:4:"1000";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-09-12 18:00:00";s:9:"is_public";s:1:"1";s:18:"system_calendar_id";N;s:7:"creator";i:1000;s:10:"project_id";s:4:"1791";s:10:"updated_at";N;s:10:"set_top_at";N;}', '', 1000, '114.246.237.213') |
17:09:09.560 | 2.0 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=9) AND ("object_id"=17942) |
17:09:09.563 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_schedule_carbon_copy_rels" WHERE "schedule_id"=17942 |
17:09:09.563 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1000' |
17:09:09.564 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_schedules" WHERE "id"=17942 |
17:09:09.564 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000) |
17:09:09.565 | 1.0 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (1000, '9', 17942, '曹永生新建了一条待办事项', TRUE, '好吧宝贝') RETURNING "id" |
17:09:09.566 | 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\Comments', 191296, 'a:11:{s:2:"id";i:191296;s:9:"object_id";i:17942;s:11:"object_type";s:1:"9";s:6:"parent";N;s:11:"description";s:36:"曹永生新建了一条待办事项";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:12:"好吧宝贝";}', '', 1000, '114.246.237.213') |
17:09:09.567 | 0.2 ms | SELECT | SELECT "channel_id" FROM "global"."tbl_logins" WHERE (0=1) AND ("id" != 1000) AND (channel_id IS NOT NULL) |
17:09:09.577 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_schedules" WHERE "id"=17942 |
17:09:09.577 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:09:09.578 | 1.6 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', 17942, 9, 1000, '2025-09-12 17:09:09', '{"id":17942,"client_id":1661,"schedule_title":"\u597d\u5427\u5b9d\u8d1d","description":null,"schedule_week":null,"start_at":"2025-09-12 09:00:00","complete_at":null,"complete_description":null,"is_complete":false,"alarm_before":null,"created_by":1000,"created_at":"2025-09-12 17:09:09","is_closed":false,"is_remind":false,"time_type":null,"schedule_end":null,"repeat_id":null,"end_at":"2025-09-12 18:00:00","is_public":1,"system_calendar_id":null,"creator":1000,"project_id":1791,"updated_at":"2025-09-12 17:09:09","set_top_at":null}', '{"id":17942,"client_id":1661,"schedule_title":"\u597d\u5427\u5b9d\u8d1d","description":null,"schedule_week":null,"start_at":"2025-09-12 09:00:00","complete_at":null,"complete_description":null,"is_complete":false,"alarm_before":null,"created_by":1000,"created_at":"2025-09-12 17:09:09","is_closed":false,"is_remind":false,"time_type":null,"schedule_end":null,"repeat_id":null,"end_at":"2025-09-12 18:00:00","is_public":1,"system_calendar_id":null,"creator":1000,"project_id":1791,"updated_at":"2025-09-12 17:09:09","set_top_at":null}', '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[]}') RETURNING "id" |
17:09:09.580 | 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', 565251, 'a:13:{s:2:"id";i:565251;s:9:"object_id";i:17942;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:533:"{"id":17942,"client_id":1661,"schedule_title":"\u597d\u5427\u5b9d\u8d1d","description":null,"schedule_week":null,"start_at":"2025-09-12 09:00:00","complete_at":null,"complete_description":null,"is_complete":false,"alarm_before":null,"created_by":1000,"created_at":"2025-09-12 17:09:09","is_closed":false,"is_remind":false,"time_type":null,"schedule_end":null,"repeat_id":null,"end_at":"2025-09-12 18:00:00","is_public":1,"system_calendar_id":null,"creator":1000,"project_id":1791,"updated_at":"2025-09-12 17:09:09","set_top_at":null}";s:9:"new_value";s:533:"{"id":17942,"client_id":1661,"schedule_title":"\u597d\u5427\u5b9d\u8d1d","description":null,"schedule_week":null,"start_at":"2025-09-12 09:00:00","complete_at":null,"complete_description":null,"is_complete":false,"alarm_before":null,"created_by":1000,"created_at":"2025-09-12 17:09:09","is_closed":false,"is_remind":false,"time_type":null,"schedule_end":null,"repeat_id":null,"end_at":"2025-09-12 18:00:00","is_public":1,"system_calendar_id":null,"creator":1000,"project_id":1791,"updated_at":"2025-09-12 17:09:09","set_top_at":null}";s:11:"description";s:93:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[]}";s:10:"created_by";i:1000;s:10:"created_at";s:19:"2025-09-12 17:09:09";s:9:"is_delete";N;}', '', 1000, '114.246.237.213') |
17:09:09.581 | 0.6 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
17:09:09.582 | 1.2 ms | UPDATE | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=1661 |
17:09:09.584 | 9.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=1661) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:09:09.594 | 1.1 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (1661, 1001, 'now()', NULL) RETURNING "id" |
17:09:09.595 | 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', 180850, 'a:5:{s:2:"id";i:180850;s:9:"client_id";i:1661;s:9:"sales_rep";i:1001;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 1000, '114.246.237.213') |
17:09:09.596 | 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', 1661, 'a:0:{}', '', 1000, '114.246.237.213') |
17:09:09.596 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:09:09.597 | 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', 1661, 10, 17942, 9, 1000, '[17942]', '[17942]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}') RETURNING "id" |
17:09:09.598 | 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', 565252, 'a:13:{s:2:"id";i:565252;s:9:"object_id";i:1661;s:11:"object_type";i:10;s:9:"target_id";i:17942;s:18:"target_object_type";i:9;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:7:"[17942]";s:9:"new_value";s:7:"[17942]";s:11:"description";s:95:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '114.246.237.213') |
17:09:09.599 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
17:09:09.599 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:09:09.600 | 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', 1661, 10, 17942, 9, 1000, '17942', '17942', array[1001], '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}') RETURNING "id" |
17:09:09.601 | 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', 152346, 'a:15:{s:2:"id";i:152346;s:9:"object_id";i:1661;s:11:"object_type";i:10;s:9:"target_id";i:17942;s:18:"target_object_type";i:9;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:5:"17942";s:9:"new_value";s:5:"17942";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[1001]";s:6:"params";a:0:{}}s:11:"description";s:95:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1000, '114.246.237.213') |
17:09:09.602 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=1791 |
17:09:09.604 | 1.0 ms | UPDATE | UPDATE "a57be577deb434"."tbl_projects" SET "updated_at"='now()' WHERE "id"=1791 |
17:09:09.605 | 1.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=1791) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:09:09.606 | 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', 1791, 'a:1:{s:6:"end_at";s:19:"2021-04-19 22:25:38";}', '', 1000, '114.246.237.213') |
17:09:09.607 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
17:09:09.608 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:09:09.608 | 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', 1791, 1, 17942, 9, 1000, '[17942]', '[17942]', '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}') RETURNING "id" |
17:09:09.609 | 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', 565253, 'a:13:{s:2:"id";i:565253;s:9:"object_id";i:1791;s:11:"object_type";i:1;s:9:"target_id";i:17942;s:18:"target_object_type";i:9;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:7:"[17942]";s:9:"new_value";s:7:"[17942]";s:11:"description";s:95:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;}', '', 1000, '114.246.237.213') |
17:09:09.610 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=1791 |
17:09:09.611 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
17:09:09.611 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
17:09:09.612 | 0.7 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', 1791, 1, 17942, 9, 1000, '17942', '17942', array[1001], '{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}') RETURNING "id" |
17:09:09.612 | 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', 152347, 'a:15:{s:2:"id";i:152347;s:9:"object_id";i:1791;s:11:"object_type";i:1;s:9:"target_id";i:17942;s:18:"target_object_type";i:9;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:5:"17942";s:9:"new_value";s:5:"17942";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[1001]";s:6:"params";a:0:{}}s:11:"description";s:95:"{"d1":"\u66f9\u6c38\u751f","d2":"\u521b\u5efa\u4e86","d3":"\u5f85\u529e\u4e8b\u9879","d4":[""]}";s:10:"created_by";i:1000;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 1000, '114.246.237.213') |
17:09:09.613 | 4.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_schedule_head_of_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
17:09:09.618 | 3.8 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:09:09.622 | 2.7 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_schedule_head_of_rels" ("user_id", "schedule_id") VALUES (1000, 17942) |
17:09:09.625 | 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, 6, 170, 'v2/schedule/save-new', '{"Schedules":{"client_id":"1661","schedule_title":"\u597d\u5427\u5b9d\u8d1d","start_at":"2025-09-12 09:00","end_at":"2025-09-12 18:00","alarm_before":"","repeat_type":"","is_public":"1","created_by":"1000","project_id":"1791","attachmentFiles":"","headUsers":["1000"]},"posttime":"1757668150","access_token":"gIBfXHaGAAjf2tBIfgqsDfRNPly9E9om","device_type":"6","version_code":"170","token":"45a47b2d6b7746410f606a20c9bf1eab"}', '{"code":200,"data":{"id":null},"status":1,"msg":[{"name":"success","success":"\u65b0\u5f85\u529e\u4e8b\u9879\u5df2\u521b\u5efa\u6210\u529f","error":""}]}', FALSE, '2025-09-12 17:09:09') RETURNING "id" |