-
Notifications
You must be signed in to change notification settings - Fork 12
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
1 parent
3540112
commit 90fecd6
Showing
4 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
orm/migrations/2024-12-16-231256_create_pos_rewards_table/down.sql
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 @@ | ||
DROP TABLE IF EXISTS pos_rewards; |
11 changes: 11 additions & 0 deletions
11
orm/migrations/2024-12-16-231256_create_pos_rewards_table/up.sql
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,11 @@ | ||
-- Creates the pos_rewards table with four columns: | ||
-- owner: TEXT, representing the delegator address | ||
-- validator_id: INTEGER, representing the validator identifier | ||
-- raw_amount: NUMERIC, holding large numeric values for rewards | ||
-- epoch: INTEGER, representing the epoch number | ||
CREATE TABLE pos_rewards ( | ||
owner TEXT NOT NULL, | ||
validator_id INTEGER NOT NULL, | ||
raw_amount NUMERIC NOT NULL, | ||
epoch INTEGER NOT NULL | ||
); |