Add Migrations

This commit is contained in:
Samuel Lorch 2024-05-05 01:27:39 +02:00
parent 952bb316c2
commit e426c580f5
8 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS tasks(
id serial PRIMARY KEY,
worker_id uuid REFERENCES workers(id),
file_id integer REFERENCES files(id) NOT NULL,
status smallint NOT NULL,
type smallint NOT NULL
);