14:45:19.611 | 4.6 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_erp_stores'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
14:45:19.626 | 1.3 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/erp-inventory-product/product-get-label', '[]', '{"code":2000,"result":{"label":[{"field":"pageIndex","title":"\u5e8f\u53f7","id":"","is_click":false,"hasParamKey":"","params":[]},{"field":"name","title":"\u4ea7\u54c1\u578b\u53f7","id":"","is_click":true,"hasParamKey":"","params":[]},{"field":"productSerie.name","title":"\u4ea7\u54c1\u7cfb\u5217","id":"","is_click":false,"hasParamKey":"","params":[]},{"field":"productBrand.name","title":"\u4ea7\u54c1\u54c1\u724c","id":"","is_click":false,"hasParamKey":"","params":[]},{"field":"productType.name","title":"\u4ea7\u54c1\u5927\u7c7b","id":"","is_click":false,"hasParamKey":"","params":[]},{"field":"productComponent.name","title":"\u4ea7\u54c1\u5c0f\u7c7b","id":"","is_click":false,"hasParamKey":"","params":[]},{"field":"productUnit.name","title":"\u4ea7\u54c1\u5355\u4f4d","id":"","is_click":false,"hasParamKey":"","params":[]},{"field":"erpInventoryCount.inventory","title":"\u5e93\u5b58\u6570\u91cf","id":"","is_click":true,"hasParamKey":["inventory","ticket_type"],"params":{"inventory":1,"ticket_type":[2,5,6,9,10]}},{"field":"erpInventoryCount2.avg_amount","title":"\u5355\u4ef7","id":"","is_click":false,"hasParamKey":[],"params":[]},{"field":"erpInventoryCount2.amount","title":"\u603b\u4ef7","id":"","is_click":false,"hasParamKey":[],"params":[]},{"field":"everyStoreErpInventoryCount1.inventory","title":"\u4e3b\u4ed3\u5e93","id":1,"is_click":true,"hasParamKey":["erp_store_id","inventory","ticket_type"],"params":{"inventory":1,"erp_store_id":1,"ticket_type":[2,5,6,9,10]}},{"field":"erpInventoryCount.number","title":"\u5df2\u5165\u5e93","id":"","is_click":true,"hasParamKey":["inventory","ticket_type"],"params":{"inventory":1,"ticket_type":[2,5,6,9,10]}},{"field":"erpInventoryCount.outbound","title":"\u5df2\u51fa\u5e93","id":"","is_click":true,"hasParamKey":["inventory","ticket_type"],"params":{"inventory":"","ticket_type":[4,5,8,11]}}]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-08-11 14:45:19') RETURNING "id" |