Add Migrations
This commit is contained in:
parent
952bb316c2
commit
e426c580f5
8 changed files with 34 additions and 0 deletions
8
migrations/000004_create_task_table.up.sql
Normal file
8
migrations/000004_create_task_table.up.sql
Normal 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
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue