Files
bj_power/sql/_mes_catalog.tsv
T
SunYF 1f7a42fc38 refactor(mes): 移除工位接驳台绑定逻辑,改为独立dock主数据
- 移除station表的hasDock、dockCode字段及相关代码
- 新增dock表注释及关联逻辑,支持一个工位绑定多个接驳台
- 更新工位相关的seed、logic、schema及前端代码,适配新的接驳台管理方式
- 新增SQL注释固化脚本,完善MES表注释
2026-10-08 13:09:53 +08:00

403 lines
15 KiB
Plaintext

table_name column_name data_type col_comment
alert id bigint
alert rule_id bigint
alert type character varying
alert title character varying
alert content character varying
alert ref_type character varying
alert ref_id character varying
alert order_no character varying
alert status character varying
alert receiver character varying
alert created_at timestamp with time zone
alert_rule id bigint
alert_rule name character varying
alert_rule type character varying
alert_rule threshold double precision
alert_rule receiver character varying
alert_rule enabled boolean
alert_rule created_by character varying
alert_rule created_at timestamp with time zone
association_trace id bigint
association_trace finished_sn character varying
association_trace order_no character varying
association_trace process_code character varying
association_trace batch_items jsonb
association_trace serial_items jsonb
association_trace operator character varying
association_trace created_at timestamp with time zone
attachment id bigint
attachment biz_type character varying
attachment biz_id character varying
attachment file_name character varying
attachment file_path character varying
attachment file_size bigint
attachment uploader character varying
attachment created_at timestamp with time zone
attachment file_type character varying
attachment file_ext character varying
attachment file_md5 character varying
attachment mime_type character varying
attachment archived boolean
attachment archived_at bigint
attachment deleted boolean
attachment deleted_at bigint
attachment deleted_by character varying
daily_plan id bigint
daily_plan order_no character varying
daily_plan plan_date character varying
daily_plan plan_qty bigint
daily_plan completed_qty bigint
daily_plan station_plan_qty jsonb
daily_plan status character varying
daily_plan operator character varying
daily_plan created_at timestamp with time zone
daily_plan updated_at timestamp with time zone
dock id bigint
dock dock_code character varying
dock name character varying
dock dock_type character varying
dock station_no bigint
dock has_pallet boolean
dock pallet_ref character varying
dock status character varying
dock created_at timestamp with time zone
event_log id bigint
event_log event_type character varying
event_log work_order_no character varying
event_log operator character varying
event_log entity_type character varying
event_log entity_id character varying
event_log description text
event_log payload jsonb
event_log created_at timestamp with time zone
flow_material id bigint
flow_material flow_id bigint
flow_material material_code character varying
flow_material material_name character varying
flow_material spec character varying
flow_material unit character varying
flow_material unit_qty double precision
flow_material loss_rate double precision
flow_material created_at timestamp with time zone
flow_material sn_mode bigint
inspection_record id bigint
inspection_record category character varying
inspection_record station_no character varying
inspection_record shift character varying
inspection_record order_no character varying
inspection_record sn character varying
inspection_record result character varying
inspection_record items jsonb
inspection_record photo character varying
inspection_record remark character varying
inspection_record operator character varying
inspection_record process_code bigint
inspection_record step_id bigint
inspection_record step_name character varying
inspection_record measured_value character varying
inspection_record report_no character varying
inspection_record material_code character varying
inspection_record material_name character varying
inspection_record manufacturer character varying
inspection_record inspection_no character varying
inspection_record attachment_ids character varying
inspection_record disposal_type character varying
inspection_record disposal_remark character varying
inspection_record created_at timestamp with time zone
inspection_record batch_sn character varying
inspection_record related_standard character varying
inspection_record test_record_no character varying
line_point id bigint
line_point point_type character varying
line_point point_no character varying
line_point label character varying
line_point seq bigint
line_point station_no bigint
line_point current_sn character varying
line_point order_no character varying
line_point occupied boolean
line_point updated_at timestamp with time zone
material_qty_report id bigint
material_qty_report station_no bigint
material_qty_report order_no character varying
material_qty_report sn character varying
material_qty_report material_code character varying
material_qty_report material_name character varying
material_qty_report plan_qty bigint
material_qty_report actual_qty bigint
material_qty_report diff_qty bigint
material_qty_report cause character varying
material_qty_report status character varying
material_qty_report handle_type character varying
material_qty_report handle_doc_no character varying
material_qty_report handle_note character varying
material_qty_report handled_by character varying
material_qty_report handled_at bigint
material_qty_report operator character varying
material_qty_report created_at timestamp with time zone
material_qty_report resolved_at timestamp with time zone
material_request id bigint
material_request request_no character varying
material_request order_no character varying
material_request plan_date character varying
material_request material_code character varying
material_request material_name character varying
material_request unit character varying
material_request req_qty double precision
material_request status character varying
material_request target_dock character varying
material_request station_no bigint
material_request flow_id bigint
material_request sent_qty double precision
material_request received_qty double precision
material_request received_at bigint
material_request receive_by character varying
material_request source character varying
material_request over_qty double precision
material_request over_reason character varying
material_request ref_report_no character varying
material_request need_agv boolean
material_request batch_no character varying
material_request operator character varying
material_request created_at timestamp with time zone
material_request updated_at timestamp with time zone
material_request sn_mode bigint
materials id bigint
materials code character varying
materials name character varying
materials spec character varying
materials unit character varying
materials description character varying
materials item_type bigint
materials manage_mode bigint
materials template_code character varying
materials safety_stock bigint
materials is_active boolean
materials sync_pending boolean
materials created_at timestamp with time zone
materials updated_at timestamp with time zone
materials sn_mode bigint
permission id bigint
permission code character varying
permission name character varying
permission type character varying
permission parent_code character varying
permission path character varying
permission icon character varying
permission sort bigint
permission remark character varying
permission created_at timestamp with time zone
plc_move_cmd id bigint
plc_move_cmd cmd_no character varying
plc_move_cmd sn character varying
plc_move_cmd order_no character varying
plc_move_cmd from_point character varying
plc_move_cmd to_point character varying
plc_move_cmd status character varying
plc_move_cmd operator character varying
plc_move_cmd message character varying
plc_move_cmd created_at timestamp with time zone
plc_move_cmd updated_at timestamp with time zone
plc_send_log id bigint
plc_send_log order_no character varying
plc_send_log sn character varying
plc_send_log station_no bigint
plc_send_log process_combination character varying
plc_send_log process_codes jsonb
plc_send_log status character varying
plc_send_log send_time timestamp with time zone
plc_send_log done_time timestamp with time zone
plc_send_log ack boolean
plc_send_log remark character varying
plc_send_log operator character varying
plc_send_log created_at timestamp with time zone
process_flow id bigint
process_flow name character varying
process_flow pdf_file character varying
process_flow status character varying
process_flow remark character varying
process_flow created_at timestamp with time zone
process_flow updated_at timestamp with time zone
process_step id bigint
process_step flow_id bigint
process_step seq bigint
process_step name character varying
process_step collect_type character varying
process_step is_torque boolean
process_step need_check boolean
process_step attachment jsonb
process_step remark character varying
process_step created_at timestamp with time zone
process_step need_operator_sign boolean
process_step need_inspector_sign boolean
role id bigint
role name character varying
role code character varying
role remark character varying
role permission_codes jsonb
role created_at timestamp with time zone
semi_flow id bigint
semi_flow sn character varying
semi_flow order_no character varying
semi_flow done_process_codes jsonb
semi_flow completed_text character varying
semi_flow action character varying
semi_flow target_dock character varying
semi_flow operator character varying
semi_flow created_at timestamp with time zone
station id bigint
station station_no bigint
station name character varying
station flow_id bigint
station station_type character varying
station status character varying
station is_builtin boolean
station has_dock boolean
station dock_code character varying
station visible_tabs jsonb
station created_at timestamp with time zone
station_state id bigint
station_state station_no bigint
station_state date character varying
station_state paused boolean
station_state reason character varying
station_state operator character varying
station_state created_at timestamp with time zone
station_state updated_at timestamp with time zone
step_criterion id bigint
step_criterion step_id bigint
step_criterion name character varying
step_criterion unit character varying
step_criterion logic character varying
step_criterion target double precision
step_criterion min double precision
step_criterion max double precision
step_criterion created_at timestamp with time zone
step_data id bigint
step_data sn character varying
step_data process_id bigint
step_data step_id bigint
step_data step_name character varying
step_data criterion_id bigint
step_data criterion_name character varying
step_data criterion_logic character varying
step_data value double precision
step_data value_text character varying
step_data is_ok boolean
step_data operator character varying
step_data created_at timestamp with time zone
step_sign_record id bigint
step_sign_record sn character varying
step_sign_record order_no character varying
step_sign_record flow_id bigint
step_sign_record station_no character varying
step_sign_record step_id bigint
step_sign_record step_name character varying
step_sign_record sign_role character varying
step_sign_record result character varying
step_sign_record signed_by character varying
step_sign_record signed_at timestamp with time zone
step_sign_record round bigint
step_sign_record source character varying
step_sign_record remark character varying
step_sign_record revoked boolean
step_sign_record revoked_by character varying
step_sign_record revoked_at timestamp with time zone
step_sign_record revoke_reason character varying
step_sign_record created_at timestamp with time zone
sys_config id bigint
sys_config key character varying
sys_config value character varying
sys_config remark character varying
torque_record id bigint
torque_record work_order_no character varying
torque_record sn character varying
torque_record screw_no character varying
torque_record strain double precision
torque_record torque double precision
torque_record angle double precision
torque_record result character varying
torque_record operator character varying
torque_record station_no character varying
torque_record time timestamp with time zone
torque_record created_at timestamp with time zone
torque_record operator_id bigint
user id bigint
user username character varying
user password character varying
user name character varying
user role_id bigint
user can_login_workstation boolean
user workstation_password character varying
user status character varying
user last_login_at bigint
user created_at timestamp with time zone
user updated_at timestamp with time zone
user_station id bigint
user_station user_id bigint
user_station station_no bigint
user_station created_at timestamp with time zone
work_order id bigint
work_order work_order_no character varying
work_order product_type_id bigint
work_order product_code character varying
work_order product_name character varying
work_order quantity bigint
work_order finished_num bigint
work_order fail_num bigint
work_order contract_no character varying
work_order project_no character varying
work_order product_serial character varying
work_order created_by character varying
work_order due_date timestamp with time zone
work_order flow_combination jsonb
work_order status character varying
work_order plan_start timestamp with time zone
work_order plan_end timestamp with time zone
work_order context jsonb
work_order completed_at timestamp with time zone
work_order created_at timestamp with time zone
work_order updated_at timestamp with time zone
work_order ownership_type character varying
workpiece id bigint
workpiece sn character varying
workpiece order_no character varying
workpiece work_order_id bigint
workpiece current_station_no bigint
workpiece status character varying
workpiece online_at timestamp with time zone
workpiece done_at timestamp with time zone
workpiece created_at timestamp with time zone
workpiece updated_at timestamp with time zone
workpiece_bind id bigint
workpiece_bind sn character varying
workpiece_bind order_no character varying
workpiece_bind flow_id bigint
workpiece_bind station_no character varying
workpiece_bind material_code character varying
workpiece_bind material_name character varying
workpiece_bind spec character varying
workpiece_bind unit character varying
workpiece_bind bind_value character varying
workpiece_bind bind_type character varying
workpiece_bind operator character varying
workpiece_bind created_at timestamp with time zone
workpiece_bind sn_mode bigint
workpiece_process id bigint
workpiece_process sn character varying
workpiece_process flow_id bigint
workpiece_process station_no character varying
workpiece_process order_no character varying
workpiece_process process_name character varying
workpiece_process status character varying
workpiece_process operator character varying
workpiece_process result character varying
workpiece_process started_at timestamp with time zone
workpiece_process ended_at timestamp with time zone
workpiece_process duration_sec bigint
workpiece_process remark character varying
workpiece_process created_at timestamp with time zone
workpiece_process operator_id bigint
(400 rows)