Files
cattleTransportation/添加项圈运单字段.sql
2025-10-15 17:47:39 +08:00

9 lines
393 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 1. 在xq_client表添加运单相关字段
ALTER TABLE xq_client
ADD COLUMN delivery_id INT COMMENT '运单ID',
ADD COLUMN delivery_number VARCHAR(64) COMMENT '运单号',
ADD COLUMN license_plate VARCHAR(64) COMMENT '车牌号';
-- 2. 可选在delivery表添加项圈设备字段
-- ALTER TABLE delivery
-- ADD COLUMN xq_device_ids TEXT COMMENT '智能项圈设备ID列表(JSON)';