Init
This commit is contained in:
commit
ce49c3df81
29 changed files with 3466 additions and 0 deletions
1
migrations/2023-05-31-130457_init/down.sql
Normal file
1
migrations/2023-05-31-130457_init/down.sql
Normal file
|
@ -0,0 +1 @@
|
|||
DROP TABLE directories;
|
8
migrations/2023-05-31-130457_init/up.sql
Normal file
8
migrations/2023-05-31-130457_init/up.sql
Normal file
|
@ -0,0 +1,8 @@
|
|||
CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
||||
|
||||
CREATE TABLE directories (
|
||||
id uuid PRIMARY KEY DEFAULT GEN_RANDOM_UUID(),
|
||||
active boolean NOT NULL,
|
||||
created_at timestamptz NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at timestamptz
|
||||
);
|
Reference in a new issue