From eabceaf753d9763df58c0b845b6d27a9afaca5d0 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期一, 12 一月 2026 08:08:44 +0800
Subject: [PATCH] #

---
 version/db/new.sql |  106 +++++++++--------------------------------------------
 1 files changed, 18 insertions(+), 88 deletions(-)

diff --git a/version/db/new.sql b/version/db/new.sql
index d49e3c4..603a794 100644
--- a/version/db/new.sql
+++ b/version/db/new.sql
@@ -1,93 +1,23 @@
-code - spin
-
-alter table man_agv_model
-    add need_undocking int(1) default 0 null comment '鏂紑鍏呯數{1:鏄�,0:鍚' after mqtt_topic;
-
-alter table man_agv_model
-    add backup_action int(1) default 0 null comment '鑳岀瘬鍔ㄤ綔{1:鏄�,0:鍚' after need_undocking;
-
-man_segment: start_time, end_time,
-
-alter table man_segment
-    add roller_waiting int(1) default 0 null comment '婊氱瓛绾跨瓑寰�' after end_time;
-man_segment_log
-
-alter table man_sta
-    add capacity int null comment '妲戒綅鏁�' after angle;
-alter table man_sta
-    add occ_cnt int null comment '鍗犵敤鏁�' after capacity;
-alter table man_sta
-    add rsv_in_cnt int null comment '棰勭害鏀捐揣閲�' after occ_cnt;
-alter table man_sta
-    add rsv_out_cnt int null comment '棰勭害鍙栬揣閲�' after rsv_in_cnt;
-
-
-
 -- auto-generated definition
-create table man_sta_reserve_log
+create table man_lane
 (
-    id             bigint                              not null comment 'ID',
-    uuid         varchar(255)                        null comment '鏍囪瘑',
-    sta_id       bigint                              not null comment '绔欑偣[man_sta]',
-    task_id      bigint                              not null comment '浠诲姟[man_task]',
-    segment_id   bigint                              null comment '浣滀笟[man_segment]',
-    agv_id       bigint                              null comment 'AGV[man_agv]',
-    name         varchar(255)                        null comment '鍚嶇О(*)',
-    type         varchar(255)                        not null comment '棰勭害绫诲瀷',
-    qty          int                                 not null comment '棰勭害鏁伴噺',
-    state        varchar(255)                        not null comment '棰勭害鐘舵��',
-    reason       varchar(255)                        null comment '鍘熷洜',
-    expire_time  timestamp                           null comment '杩囨湡鏃堕棿',
-    waiting_at   timestamp                           null comment '寮�濮嬬瓑寰呮椂闂�',
-    confirmed_at timestamp                           null comment '纭瀹屾垚鏃堕棿',
-    cancelled_at timestamp                           null comment '鍙栨秷鏃堕棿',
-    uniq_key     varchar(255)                        null comment '骞傜瓑閿�',
-    status       int(1)    default 1                 not null comment '鐘舵�亄1:姝e父,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 '澶囨敞'
+    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:姝e父,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;
 
-
-
--- auto-generated definition
-create table man_sta_reserve_log
-(
-    id           bigint                              not null comment 'ID',
-    uuid         varchar(255)                        null comment '鏍囪瘑',
-    sta_id       bigint                              not null comment '绔欑偣[man_sta]',
-    task_id      bigint                              not null comment '浠诲姟[man_task]',
-    segment_id   bigint                              null comment '浣滀笟[man_segment]',
-    agv_id       bigint                              null comment 'AGV[man_agv]',
-    name         varchar(255)                        null comment '鍚嶇О(*)',
-    type         varchar(255)                        not null comment '棰勭害绫诲瀷',
-    qty          int                                 not null comment '棰勭害鏁伴噺',
-    state        varchar(255)                        not null comment '棰勭害鐘舵��',
-    reason       varchar(255)                        null comment '鍘熷洜',
-    expire_time  timestamp                           null comment '杩囨湡鏃堕棿',
-    waiting_at   timestamp                           null comment '寮�濮嬬瓑寰呮椂闂�',
-    confirmed_at timestamp                           null comment '纭瀹屾垚鏃堕棿',
-    cancelled_at timestamp                           null comment '鍙栨秷鏃堕棿',
-    uniq_key     varchar(255)                        null comment '骞傜瓑閿�',
-    status       int(1)    default 1                 not null comment '鐘舵�亄1:姝e父,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;
-
--- menu
-194,menu.staReserve,55,menu.equipment,55,menu.equipment,/manager/staReserve,staReserve,null,null,0,null,AccessTime,101,null,1,1,0,null,null,2025-12-26 10:56:42,2,null
-195,Query StaReserve,194,null,null,null,null,null,null,null,1,manager:staReserve:list,null,0,null,1,1,0,null,null,null,null,null
-196,Create StaReserve,194,null,null,null,null,null,null,null,1,manager:staReserve:save,null,1,null,1,1,0,null,null,null,null,null
-197,Update StaReserve,194,null,null,null,null,null,null,null,1,manager:staReserve:update,null,2,null,1,1,0,null,null,null,null,null
-    198,Delete StaReserve,194,null,null,null,null,null,null,null,1,manager:staReserve:remove,null,3,null,1,1,0,null,null,null,null,null

--
Gitblit v1.9.1