Skip to content

Commit

Permalink
feat(hasura): add endpoints check history table
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Mar 10, 2023
1 parent 000430c commit 5771ae5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: endpoints_check_history
schema: public
1 change: 1 addition & 0 deletions hasura/metadata/databases/default/tables/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- "!include public_demux_state.yaml"
- "!include public_endpoint.yaml"
- "!include public_endpoints_by_producer_id.yaml"
- "!include public_endpoints_check_history.yaml"
- "!include public_health_check_history.yaml"
- "!include public_node.yaml"
- "!include public_node_info.yaml"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE "public"."endpoints_check_history";
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE TABLE "public"."endpoints_check_history" ("id" uuid NOT NULL DEFAULT gen_random_uuid(), "successful_checks" integer NOT NULL, "sum_total_time" integer NOT NULL, "value" varchar NOT NULL, "date" date NOT NULL, "producer_id" integer NOT NULL, PRIMARY KEY ("id") , FOREIGN KEY ("producer_id") REFERENCES "public"."producer"("id") ON UPDATE restrict ON DELETE cascade, UNIQUE ("id"));
CREATE EXTENSION IF NOT EXISTS pgcrypto;

0 comments on commit 5771ae5

Please sign in to comment.