add: 目标表增加根节点id和父节点id

This commit is contained in:
kkunkka
2025-10-10 14:53:19 +08:00
parent affb754ae4
commit 82e1f2deb4
2 changed files with 7 additions and 1 deletions

View File

@@ -9,7 +9,9 @@ CREATE TABLE if not exists `goal`
type enum ('GOAL', 'TASK', 'HABIT') default 'TASK' NOT NULL,
name varchar(100) NOT NULL,
tag varchar(100) NULL,
detail varchar(100) NULL
detail varchar(100) NULL,
root_id int unsigned null,
parent_id int unsigned null
)
COMMENT ='目标管理表';

View File

@@ -15,4 +15,8 @@ public class Goal extends Entity {
private String tag;
private String detail;
private Integer rootId;
private Integer parentId;
}