| 09:21:02.673 | 8.1 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_sales_contracts'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 09:21:02.777 | 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, 'a57be577deb434', 1011, 5, 'vue/history/list-object', '{"web_access_token":"5N15F7HBbTkct7yQdhI3QMhbhAJ-X2CO"}', '{"code":2000,"result":{"list":[{"id":207552,"user_id":1011,"object_type":13,"object_id":4482,"last_visit_at":"2026-05-28 10:59:03","title":"\u5408\u540c\u7f16\u53f7\uff1a\u6d4b\u8bd5\u6284\u9001\u4eba\u63d0\u9192","icon":"icon-caigouhetong"},{"id":207551,"user_id":1011,"object_type":7,"object_id":4480,"last_visit_at":"2026-05-27 12:09:15","title":"\u5408\u540c\u7f16\u53f7\uff1a2026-05-25-002","icon":"icon-xiaoshouhetong"},{"id":207550,"user_id":1011,"object_type":1,"object_id":4172,"last_visit_at":"2026-05-27 12:07:28","title":"\u63a8\u7279\u5982\u56fe","icon":"icon-shangjixinxi"},{"id":207549,"user_id":1011,"object_type":13,"object_id":4475,"last_visit_at":"2026-05-26 17:46:34","title":"\u5408\u540c\u7f16\u53f7\uff1a\u7ecf\u624b\u4eba\u5173\u8054\u5ba2\u6237\u5546\u673a","icon":"icon-caigouhetong"},{"id":207363,"user_id":1011,"object_type":9,"object_id":18110,"last_visit_at":"2026-05-09 17:10:37","title":"\u505a\u51fa\u5e93\u51c6\u5907","icon":"icon-daiban"},{"id":207358,"user_id":1011,"object_type":9,"object_id":17939,"last_visit_at":"2026-05-09 11:20:22","title":"PaloAlto \u65b0\u8d22\u5e74\u8003\u8bd5\u5c1a\u672a\u4e0a\u7ebf\uff0c\u7b49\u901a\u77e5\uff01\u67b6\u6784\u548c\u4e4b\u524d\u4e0d\u540c\uff0c\u65b0\u7684\u8054\u7cfb\u4eba\uff1a\u80e1\u6960","icon":"icon-daiban"},{"id":207353,"user_id":1011,"object_type":101,"object_id":1580,"last_visit_at":"2026-05-09 11:03:35","title":"\u56fa\u5b9a\u98ce\u683c","icon":"icon-xiangmuguanli"},{"id":207352,"user_id":1011,"object_type":101,"object_id":1581,"last_visit_at":"2026-05-09 11:03:31","title":"\u8ba2\u5355","icon":"icon-xiangmuguanli"},{"id":207251,"user_id":1011,"object_type":101,"object_id":1536,"last_visit_at":"2026-04-22 10:49:32","title":"\u5236\u4f5c\u6807\u4e66","icon":"icon-xiangmuguanli"},{"id":207250,"user_id":1011,"object_type":102,"object_id":191,"last_visit_at":"2026-04-22 10:39:47","title":"\u8fb9\u754c\u9632\u706b\u5899\u66ff\u6362","icon":"icon-xiangmuguanli"}]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"221.216.117.119","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/148.0.0.0 Safari\/537.36"}', FALSE, '2026-06-01 09:21:02', 117985792) RETURNING "id" |