9 lines
557 B
SQL
9 lines
557 B
SQL
CREATE TABLE IF NOT EXISTS tasks (
|
||
task_id INT AUTO_INCREMENT PRIMARY KEY, -- 任务ID,自增
|
||
task_description VARCHAR(255) NOT NULL, -- 任务描述
|
||
reminder_time TIME NOT NULL, -- 提醒时间
|
||
task_type ENUM('single', 'recurring') DEFAULT 'single', -- 任务类型:单次或周期性
|
||
status ENUM('pending', 'completed') DEFAULT 'pending', -- 任务状态:待办或已完成
|
||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP -- 创建时间,默认为当前时间
|
||
);
|