-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CREATE TABLE public.project_runs ( | ||
id uuid NOT NULL, | ||
created_at timestamptz NULL, | ||
updated_at timestamptz NULL, | ||
deleted_at timestamptz NULL, | ||
project_id uuid NULL, | ||
started_at int8 NULL, | ||
ended_at int8 NULL, | ||
status text NULL, | ||
command text NULL, | ||
"output" text NULL, | ||
actor_username text NULL, | ||
CONSTRAINT project_runs_pkey PRIMARY KEY (id) | ||
); | ||
CREATE INDEX idx_project_runs_deleted_at ON public.project_runs USING btree (deleted_at); | ||
|
||
|
||
-- public.project_runs foreign keys | ||
|
||
ALTER TABLE public.project_runs ADD CONSTRAINT fk_project_runs_project FOREIGN KEY (project_id) REFERENCES public.projects(id); |