Files
Nexus-api/db/schema.sql

14 lines
665 B
MySQL
Raw Normal View History

drop table if exists `goal`;
2025-10-01 09:44:35 +08:00
CREATE TABLE if not exists `goal`
2025-10-01 09:44:35 +08:00
(
id INT unsigned auto_increment PRIMARY KEY,
2025-10-10 11:41:50 +08:00
status enum ('DOING', 'DONE', 'CANCEL') default 'DOING' not null,
create_time DATETIME NULL,
update_time DATETIME NULL,
type enum('GOAL', 'TASK', 'HABIT') default 'TASK' NOT NULL ,
2025-10-10 11:41:50 +08:00
name varchar(100) NOT NULL,
tag varchar(100) NULL,
detail varchar(100) NULL
2025-09-29 19:50:02 +08:00
)
COMMENT ='目标管理表';