This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from 8thlight/pit-file
Pit file
- Loading branch information
Showing
73 changed files
with
2,256 additions
and
172 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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
CREATE TABLE maker.frob ( | ||
id SERIAL PRIMARY KEY, | ||
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE, | ||
tx_idx INTEGER, | ||
ilk bytea, | ||
lad bytea, | ||
urn bytea, | ||
dink NUMERIC, | ||
dart NUMERIC, | ||
ink NUMERIC, | ||
art NUMERIC, | ||
iart NUMERIC, | ||
iart NUMERIC, | ||
tx_idx INTEGER NOT NUll, | ||
raw_log JSONB, | ||
UNIQUE (header_id, tx_idx) | ||
); |
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,3 @@ | ||
DROP TABLE maker.pit_file_ilk; | ||
DROP TABLE maker.pit_file_stability_fee; | ||
DROP TABLE maker.pit_file_debt_ceiling; |
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,30 @@ | ||
CREATE TABLE maker.pit_file_ilk ( | ||
id SERIAL PRIMARY KEY, | ||
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE, | ||
ilk TEXT, | ||
what TEXT, | ||
data NUMERIC, | ||
tx_idx INTEGER NOT NUll, | ||
raw_log JSONB, | ||
UNIQUE (header_id, tx_idx) | ||
); | ||
|
||
CREATE TABLE maker.pit_file_stability_fee ( | ||
id SERIAL PRIMARY KEY, | ||
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE, | ||
what TEXT, | ||
data TEXT, | ||
tx_idx INTEGER NOT NULL, | ||
raw_log JSONB, | ||
UNIQUE (header_id, tx_idx) | ||
); | ||
|
||
CREATE TABLE maker.pit_file_debt_ceiling ( | ||
id SERIAL PRIMARY KEY, | ||
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE, | ||
what TEXT, | ||
data NUMERIC, | ||
tx_idx INTEGER NOT NULL, | ||
raw_log JSONB, | ||
UNIQUE (header_id, tx_idx) | ||
); |
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.