| 09:16:15.029 | 5.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_unread_comments'
and d.nspname = 'o6a13e2c574d5a'
ORDER BY
a.attnum; |
| 09:16:15.061 | 1.6 ms | INSERT | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'o6a13e2c574d5a', 5495, 5, 'vue/comment/list', '{"object_type":"7","object_id":"8","page":"1","web_access_token":"fBwCmd7csXIYKc0xRKne9r8J7AW22Ivz"}', '{"code":2000,"result":{"list":[{"id":56,"object_id":8,"object_type":"7","parent":{},"description":"\u903b\u8f91\u6d4b\u8bd5\u5220\u9664\u4e86\uff1a2026-05-27-001\u53d1\u7968\u4fe1\u606f2026-06-11\uffe51111","created_by":5495,"created_at":"2026-06-11 14:29:57","reply_to":"","is_system":true,"for_user":"","description2":"\u5546\u673a\uff1a\u9500\u552e\u7ebf\u7d22\u751f\u621020260527001\uff1b\u5ba2\u6237\uff1a\u903b\u8f91\u6d4b\u8bd5-\u9500\u552e\u5408\u540c","comments":[],"attachmentRelationships":[],"createdBy":{"id":5495,"key":5495,"name":"\u903b\u8f91\u6d4b\u8bd5","sex":"F","userMetas":[]},"can_delete":true},{"id":55,"object_id":8,"object_type":"7","parent":{},"description":"\u903b\u8f91\u6d4b\u8bd5\u7f16\u8f91\u4e86\uff1a2026-05-27-001\u53d1\u7968\u4fe1\u606f2026-06-11\uffe51111","created_by":5495,"created_at":"2026-06-11 14:29:52","reply_to":"","is_system":true,"for_user":"","description2":"\u5546\u673a\uff1a\u9500\u552e\u7ebf\u7d22\u751f\u621020260527001\uff1b\u5ba2\u6237\uff1a\u903b\u8f91\u6d4b\u8bd5-\u9500\u552e\u5408\u540c","comments":[],"attachmentRelationships":[],"createdBy":{"id":5495,"key":5495,"name":"\u903b\u8f91\u6d4b\u8bd5","sex":"F","userMetas":[]},"can_delete":true},{"id":54,"object_id":8,"object_type":"7","parent":{},"description":"\u903b\u8f91\u6d4b\u8bd5\u521b\u5efa\u4e86\uff1a2026-05-27-001\u53d1\u7968\u4fe1\u606f2026-06-11\uffe5111","created_by":5495,"created_at":"2026-06-11 14:29:41","reply_to":"","is_system":true,"for_user":"","description2":"\u5546\u673a\uff1a\u9500\u552e\u7ebf\u7d22\u751f\u621020260527001\uff1b\u5ba2\u6237\uff1a\u903b\u8f91\u6d4b\u8bd5-\u9500\u552e\u5408\u540c","comments":[],"attachmentRelationships":[],"createdBy":{"id":5495,"key":5495,"name":"\u903b\u8f91\u6d4b\u8bd5","sex":"F","userMetas":[]},"can_delete":true},{"id":53,"object_id":8,"object_type":"7","parent":{},"description":"\u4ea7\u54c1\u51fa\u5e93\u672a\u5b8c\u6210","created_by":5493,"created_at":"2026-06-01 15:20:59","reply_to":"","is_system":true,"for_user":"","description2":"\u5546\u673a\uff1a\u9500\u552e\u7ebf\u7d22\u751f\u621020260527001\uff1b\u5ba2\u6237\uff1a\u903b\u8f91\u6d4b\u8bd5-\u9500\u552e\u5408\u540c","comments":[],"attachmentRelationships":[],"createdBy":{"id":5493,"key":5493,"name":"97289742","sex":"M","userMetas":[]},"can_delete":false},{"id":51,"object_id":8,"object_type":"7","parent":{},"description":"\u903b\u8f91\u6d4b\u8bd5\u4e0a\u4f20\u4e86\u5408\u540c","created_by":5495,"created_at":"2026-05-27 17:33:03","reply_to":"","is_system":true,"for_user":"","description2":"\u5546\u673a\uff1a\u9500\u552e\u7ebf\u7d22\u751f\u621020260527001\uff1b\u5ba2\u6237\uff1a\u903b\u8f91\u6d4b\u8bd5-\u9500\u552e\u5408\u540c","comments":[],"attachmentRelationships":[],"createdBy":{"id":5495,"key":5495,"name":"\u903b\u8f91\u6d4b\u8bd5","sex":"F","userMetas":[]},"can_delete":true}],"unread":0,"count":5,"pagenation":{"totalcount":5,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"39.156.194.178","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko\/20100101 Firefox\/151.0"}', FALSE, '2026-06-12 09:16:15', 62076928) RETURNING "id" |