Add boards (aka. upper categories)
This commit is contained in:
parent
07d19eeed5
commit
c6727d1030
|
@ -4,9 +4,16 @@ create table if not exists users(
|
||||||
hash varchar(128) not null
|
hash varchar(128) not null
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table boards(
|
||||||
|
id serial primary key,
|
||||||
|
name varchar(32) not null unique,
|
||||||
|
description varchar(256) not null
|
||||||
|
);
|
||||||
|
|
||||||
create table if not exists categories(
|
create table if not exists categories(
|
||||||
id serial primary key,
|
id serial primary key,
|
||||||
name varchar(32) not null unique
|
name varchar(32) not null unique,
|
||||||
|
board integer references boards(id)
|
||||||
);
|
);
|
||||||
|
|
||||||
create table if not exists tasks(
|
create table if not exists tasks(
|
||||||
|
|
Loading…
Reference in a new issue