优化
This commit is contained in:
@@ -166,9 +166,12 @@ CREATE TABLE IF NOT EXISTS fl_container_transport_history (
|
||||
after_container_no VARCHAR(64) NULL COMMENT '变更后真实集装箱号',
|
||||
before_voyage_no VARCHAR(64) NULL COMMENT '变更前航次号',
|
||||
after_voyage_no VARCHAR(64) NULL COMMENT '变更后航次号',
|
||||
operation_id VARCHAR(64) NOT NULL COMMENT '运输字段操作幂等ID',
|
||||
request_hash CHAR(64) NOT NULL COMMENT '运输字段请求哈希',
|
||||
reason VARCHAR(500) NULL COMMENT '运输字段变更原因',
|
||||
operator_id BIGINT UNSIGNED NOT NULL COMMENT '变更操作人ID',
|
||||
operator_name VARCHAR(64) NULL COMMENT '变更操作人名称快照',
|
||||
created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT '变更记录创建时间', PRIMARY KEY(id),
|
||||
UNIQUE KEY uk_container_transport_history_operation (container_booking_id,operator_id,operation_id),
|
||||
KEY idx_container_transport_history (container_booking_id,created_at,id)
|
||||
) ENGINE=InnoDB COMMENT='柜次真实运输字段不可变变更审计';
|
||||
|
||||
Reference in New Issue
Block a user