TaskFlow/schema.sql

16 lines
530 B
MySQL
Raw Normal View History

2015-11-13 17:04:42 +08:00
CREATE TABLE task (
2016-01-23 21:47:34 +08:00
id integer primary key autoincrement,
title varchar(100),
content text,
is_deleted char(1) default 'N',
created_date timestamp,
last_modified_at timestamp,
finish_date timestamp
2016-02-03 01:45:28 +08:00
, priority integer, cat_id references category(id));
2015-11-13 17:04:42 +08:00
2016-01-31 14:05:30 +08:00
CREATE TABLE files(name varchar(1000) not null, autoName varchar(255) not null);
2016-02-03 01:45:28 +08:00
CREATE TABLE category( id integer primary key autoincrement ,name varchar(1000) not null);
2016-02-15 12:10:35 +08:00
CREATE TABLE comments(id integer primary key autoincrement, content ntext, taskID references task(id));