Skip to content
Permalink
Browse files

support: schema: Add transactions table

  • Loading branch information
00-matt committed Feb 11, 2020
1 parent 086fea0 commit 3df20ba5e337eb0baf0e00dd883417a481ad2917
Showing with 7 additions and 0 deletions.
  1. +7 −0 support/schema.sql
@@ -21,3 +21,10 @@ CREATE TABLE share (
difficulty INT NOT NULL,
created_at TIMESTAMPTZ DEFAULT NOW() NOT NULL
);

CREATE TABLE transaction (
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
block_id INT REFERENCES block(id) ON DELETE CASCADE NOT NULL,
hash TEXT NOT NULL,
created_at TIMESTAMPTZ DEFAULT NOW() NOT NULL
);

0 comments on commit 3df20ba

Please sign in to comment.
You can’t perform that action at this time.