10:35:46.749 | 9.0 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_contacts'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
10:35:46.813 | 1.4 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, 2, 1147, 'v2/contact/of-supplier', '{"access_token":"8KNJgvJ4yXfZTKw12_zGtGS7KKkP6G2n","device_type":"2","id":"716","posttime":"1756521344","token":"902ffcd24739aa0bc525bbbb4cce4ed4","version_code":"1147"}', '{"code":200,"data":{"list":[{"id":6111,"name":"\u674e\u4e9a\u4f1f","email":"","pinyin_shortcut":"lyw","sex":"M","birth_date":null,"department":"","job_position":"","mobile":"","telephone":"","client_id":null,"supplier_id":716,"created_by":5360,"created_at":"2025-07-17 14:04:06","updated_at":"2025-07-17 14:04:06","user_status":2,"description":"","contact_type":"2","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"li","pinyin2":"ya","pinyin3":"wei","pinyin4":null,"namecut1":"\u674e","namecut2":"\u4e9a","namecut3":"\u4f1f","namecut4":null,"is_mp_bind":false,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c","created_by":1000,"created_at":"2016-10-31 21:28:36","updated_at":"2016-10-31 21:28:40"},"createdBy":{"id":5360,"email":"zhanghongfang@toast.com.cn","name":"\u5f20\u7ea2\u82b3","user_status":"1","pinyin_shortcut":"zhf","sex":"F","birth_date":"1997-04-07","entry_date":"2023-04-24","department_id":3,"department_position_id":60,"mobile":"18660100116","telephone":"88864628","created_at":"2023-04-24 09:37:05","updated_at":"2023-04-25 06:04:57","id_number":"371421199704072969","native_place":"\u5c71\u4e1c\u7701\u9675\u53bf","graduate_school":"\u5c71\u4e1c\u5e08\u8303\u5927\u5b66","specialty":"\u8ba1\u7b97\u673a\u7f51\u8def\u6280\u672f","education":"\u672c\u79d1","telephone_area_code":"010","telephone_extension_number":"819","leave_date":null,"pinyin1":"zhang","pinyin2":"hong","pinyin3":"fang","pinyin4":null,"namecut1":"\u5f20","namecut2":"\u7ea2","namecut3":"\u82b3","namecut4":null,"budget_count":"0","profit_count":"0","bargain_count":"0","opportunity_budget_count":"0","opportunity_count":"0","work_log_score":"0","e_implement_count":"0","e_budget_count":"0","e_profit_count":"0","e_client_count":"0","e_project_count":"0","e_point_count":"0","visit_resource_sync":false,"client_lock":false,"view_public":true,"client_remind_alarm_before":null,"work_on_remind":true,"work_off_remind":true,"check_client_same":true,"calendar_view_type":7,"search_all_client":true},"keyRoles":[],"mobiles":[{"id":6892,"contact_id":6111,"mobile":"18600652827","mp_open_id":null}],"commentCount":null,"unreadComments":null,"can_update":true,"can_delete":true,"unread":0}],"pagenation":{"totalcount":1,"thispage":1,"pagesize":10}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-08-30 10:35:46') RETURNING "id" |