Skip to content

Commit a1b1062

Browse files
authored
add final code table (#221)
1 parent de8dade commit a1b1062

6 files changed

Lines changed: 9 additions & 0 deletions

File tree

config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
version: 2
22
endpoint: http://localhost:23333
3+
#endpoint: https://api.eesast.com/v1/graphql
4+
35
metadata_directory: metadata
46
migrations_directory: migrations
57
actions:

metadata/tables.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,6 +2052,9 @@
20522052
- name: contest_team
20532053
using:
20542054
foreign_key_constraint_on: team_id
2055+
- table:
2056+
name: contest_team_software_final
2057+
schema: public
20552058
- table:
20562059
name: contest_time
20572060
schema: public
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE "public"."contest_team_software_final_code";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CREATE TABLE "public"."contest_team_software_final_code" ("team_id" uuid NOT NULL, "URL" text NOT NULL, "created_at" Timestamp NOT NULL DEFAULT now(), "updated_at" timestamptz NOT NULL DEFAULT now(), "submission_count" integer NOT NULL, "contest_id" uuid, PRIMARY KEY ("team_id") , FOREIGN KEY ("team_id") REFERENCES "public"."contest_team"("team_id") ON UPDATE cascade ON DELETE cascade, FOREIGN KEY ("contest_id") REFERENCES "public"."contest"("id") ON UPDATE restrict ON DELETE restrict, UNIQUE ("team_id"));
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE "public"."contest_team_software_final";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CREATE TABLE "public"."contest_team_software_final" ("team_id" uuid NOT NULL, "URL" text NOT NULL, "created_at" timestamptz NOT NULL DEFAULT now(), "updated_at" Timestamp NOT NULL DEFAULT now(), "submission_count" integer NOT NULL DEFAULT 1, "contest_id" uuid NOT NULL, PRIMARY KEY ("team_id") , FOREIGN KEY ("contest_id") REFERENCES "public"."contest"("id") ON UPDATE cascade ON DELETE cascade, FOREIGN KEY ("team_id") REFERENCES "public"."contest_team"("team_id") ON UPDATE cascade ON DELETE cascade, UNIQUE ("team_id"));

0 commit comments

Comments
 (0)