1
zhang
2026-01-24 abcb19ee0cf2659981516133a1a9e7b163f529ce
version/db/new.sql
@@ -1,23 +1,14 @@
-- auto-generated definition
create table man_lane
(
    id          bigint unsigned auto_increment comment 'ID'
        primary key,
    uuid        varchar(255)                        null comment '编号(*)',
    zone_id     bigint                              null comment '库区[man_zone]',
    name        varchar(255)                        null comment '名称',
    hash_code   varchar(255)                        not null comment '哈希值',
    codes       text                                not null comment '条码集',
    entry_angle int       default -1                null comment '入口角度',
    maximum     int       default -1                null comment '承载量',
    status      int(1)    default 1                 not null comment '状态{1:正常,0:冻结}',
    deleted     int(1)    default 0                 not null comment '是否删除{1:是,0:否}',
    tenant_id   int                                 null comment '租户[sys_tenant]',
    create_by   bigint                              null comment '添加人员[sys_user]',
    create_time timestamp default CURRENT_TIMESTAMP not null comment '添加时间',
    update_by   bigint                              null comment '修改人员[sys_user]',
    update_time timestamp default CURRENT_TIMESTAMP null comment '修改时间',
    memo        varchar(255)                        null comment '备注'
)
    charset = utf8;
alter table man_travel
    add roller_waiting int(1) default 0 null comment '滚筒线等待' after task_ids;
alter table man_travel
    add roller_waiting_code bigint null comment '滚筒线等待地码' after roller_waiting;
alter table man_travel_log
    add roller_waiting int(1) default 0 null comment '滚筒线等待' after task_ids;
alter table man_travel_log
    add roller_waiting_code bigint null comment '滚筒线等待地码' after roller_waiting;
CREATE INDEX idx_agv_state_wait
    ON man_travel (agv_id, state, roller_waiting, deleted);