lmao schema change

This commit is contained in:
lemonsh 2022-04-19 15:21:34 +02:00
parent a4efcd34f1
commit 868faa6cce
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,6 @@
# tmtd
(too much) To Do
(too much) To Do
## Database schema versioning
**Warning**: currently, the database schema is *unstable*, meaning that it can change any time and break everything. Be warned.

View file

@ -20,9 +20,9 @@ create table if not exists tasks(
id serial primary key,
name varchar(128) not null,
description varchar(32768) not null,
author integer references users(id) not null,
assignee integer references users(id) not null,
category integer references categories(id) not null,
author integer references users(id),
assignee integer references users(id),
category integer not null references categories(id) on delete cascade,
created timestamp not null,
deadline timestamp
)