22:34:00.729 | 6.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_users'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
22:34:00.749 | 1.2 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, 1141, 'v2/user/get-edit', '{"access_token":"rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u","device_type":"2","posttime":"1750775680","token":"1c9969562ff1781b4bf66343988fb9ff","version_code":"1141"}', '{"code":200,"data":{"model":{"id":1000,"email":"caoyongsheng@toast.com.cn","name":"\u66f9\u6c38\u751f","user_status":"1","pinyin_shortcut":"cys","sex":"M","birth_date":"1986-01-01","entry_date":"2016-07-04","department_id":10,"department_position_id":22,"mobile":"13810260729","telephone":"88864628","created_at":"2017-02-06 12:39:24","updated_at":"2025-05-08 09:58:49","id_number":"372328197810220612","native_place":"\u535a\u5174","graduate_school":"\u6ee8\u5dde\u5e08\u8303\u4e13\u79d1\u5b66\u6821","specialty":"\u6570\u5b66\u6559\u80b2(\u8ba1\u7b97\u673a)","education":"\u4e13\u79d1","telephone_area_code":"010","telephone_extension_number":"813","leave_date":null,"pinyin1":"cao","pinyin2":"yong","pinyin3":"sheng","pinyin4":null,"namecut1":"\u66f9","namecut2":"\u6c38","namecut3":"\u751f","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":false,"client_remind_alarm_before":null,"work_on_remind":false,"work_off_remind":true,"check_client_same":true,"calendar_view_type":7,"search_all_client":true,"department":{"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"},"departmentPosition":{"key":22,"name":"\u5f00\u53d1\u603b\u76d1"},"userRoles":[{"key":77,"name":"Admin","display_name":"\u7cfb\u7edf\u7ba1\u7406\u5458"},{"key":101,"name":"\u8f6f\u4ef6\u5f00\u53d1","display_name":"\u8f6f\u4ef6\u5f00\u53d1"}],"avatar":"\/files\/cdn\/a57be577deb434\/avatar\/e1ebc7f0-3c0e-38f8-a847-b9169d50c361.jpg"},"options":[{"key":"Users[sex]","name":"sex","value":[{"key":"M","name":"\u7537"},{"key":"F","name":"\u5973"}]}]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-06-24 22:34:00') RETURNING "id" |