| 22:23:17.816 | 7.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_schedules'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 22:23:17.958 | 2.1 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/dashboard/schedule', '{"page":"1"}', '{"code":2000,"result":{"list":[{"id":18054,"client_id":null,"schedule_title":"\u5929\u5929","description":null,"schedule_week":null,"start_at":"","complete_at":"","complete_description":null,"is_complete":false,"alarm_before":null,"created_by":1001,"created_at":"2025-11-19 09:28:20","is_closed":false,"is_remind":false,"time_type":null,"schedule_end":null,"repeat_id":null,"end_at":"","is_public":1,"system_calendar_id":null,"creator":1001,"project_id":null,"updated_at":"2025-11-19 09:28:20","set_top_at":null,"sort":1,"client":null,"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"commentCount":{"object_id":18054,"comment":2},"attachmentRelationships":[{"id":52636,"object_type":9,"object_id":18054,"attachment_id":29790,"attachment":{"id":29790,"key":29790,"name":"66c17109-f848-312a-891c-d946e95bf362","extension":"png","path":"\/vue\/attachment\/view\/66c17109-f848-312a-891c-d946e95bf362\/20251119092753.png","orig_name":"20251119092753.png"}},{"id":52637,"object_type":9,"object_id":18054,"attachment_id":29791,"attachment":{"id":29791,"key":29791,"name":"2fd7dccd-e57c-338b-9ccf-23f3dfb620fc","extension":"png","path":"\/vue\/attachment\/view\/2fd7dccd-e57c-338b-9ccf-23f3dfb620fc\/20251119092754.png","orig_name":"20251119092754.png"}},{"id":52638,"object_type":9,"object_id":18054,"attachment_id":29792,"attachment":{"id":29792,"key":29792,"name":"2f539026-a179-38e9-a59c-c7f26adaeeab","extension":"png","path":"\/vue\/attachment\/view\/2f539026-a179-38e9-a59c-c7f26adaeeab\/20251119092754.png","orig_name":"20251119092754.png"}}],"scheduleCreator":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"unreadComments":null,"schedule_status_display":"\u8fdb\u884c\u4e2d","is_overdue":false,"alarm_before_display":"\u65e0","end_at_display":null,"can_update":true,"can_delete":true,"can_report":true,"unread":0,"bgcolor":"#4993d0"}],"thisUser":null,"can_create":true,"pagenation":{"totalcount":1,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"111.193.7.67","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/143.0.0.0 Safari\/537.36"}', FALSE, '2025-12-18 22:23:17') RETURNING "id" |