drop table if exists `goal`; CREATE TABLE if not exists `goal` ( id INT unsigned auto_increment PRIMARY KEY, 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 , name varchar(100) NOT NULL, tag varchar(100) NULL, detail varchar(100) NULL ) COMMENT ='目标管理表';