-
Notifications
You must be signed in to change notification settings - Fork 2
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
10 changed files
with
62 additions
and
41 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
15 changes: 0 additions & 15 deletions
15
...-server/.sqlx/query-388c0357757b9e6a8d845af98a8b42f3a45161f501a500f921f555cd3d2892c1.json
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...-server/.sqlx/query-8cc740897e3df91c3a82befd724a61f010c02bd3b525a15c35dad207fc5158a3.json
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
...-server/.sqlx/query-c1e8edc296507ee7b820457492213d26119b14307ceae85414b74db38e4ac625.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 12 additions & 1 deletion
13
...-server/.sqlx/query-def2e2585d56895a2a9a7fe5aff6225abe4d6b134991198c4a58abee97917c44.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 +1,2 @@ | ||
DROP TABLE bid; | ||
DROP TYPE bid_status; |
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,15 @@ | ||
CREATE TYPE bid_status AS ENUM ('pending', 'lost', 'submitted'); | ||
|
||
CREATE TABLE bid | ||
( | ||
id UUID PRIMARY KEY, | ||
creation_time TIMESTAMP NOT NULL, | ||
permission_key BYTEA NOT NULL, | ||
chain_id TEXT NOT NULL, | ||
target_contract BYTEA NOT NULL, | ||
target_contract BYTEA NOT NULL CHECK (LENGTH(permission_key) = 20), | ||
target_calldata BYTEA NOT NULL, | ||
bid_amount NUMERIC(80, 0) NOT NULL, | ||
status TEXT NOT NULL, -- pending, lost, submitted | ||
bid_amount NUMERIC(78, 0) NOT NULL, | ||
status bid_status NOT NULL, | ||
auction_id UUID, -- TODO: should be linked to the auction table in the future | ||
removal_time TIMESTAMP -- TODO: should be removed and read from the auction table in the future | ||
); |
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