Tasks/schema.sql

16 lines
548 B
SQL

CREATE TABLE task (
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
, priority integer, cat_id references category(id));
CREATE TABLE files(name varchar(1000) not null, autoName varchar(255) not null);
CREATE TABLE category( id integer primary key autoincrement ,name varchar(1000) not null);
CREATE TABLE comments(id integer primary key autoincrement, content ntext, taskID references task(id), created datetime);