-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds migration for proposed inflation adjustments of agreements
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...ma/migrations/20241030215055_add_agreement_inflation_adjustment_suggestions/migration.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,20 @@ | ||
-- CreateTable | ||
CREATE TABLE `Agreement_inflation_adjustments` ( | ||
`ID` INTEGER NOT NULL AUTO_INCREMENT, | ||
`agreement_ID` VARCHAR(45) NOT NULL, | ||
`agreement_type` VARCHAR(20) NOT NULL, | ||
`current_amount` INTEGER NOT NULL, | ||
`proposed_amount` INTEGER NOT NULL, | ||
`inflation_percentage` DECIMAL(10, 6) NOT NULL, | ||
`token` VARCHAR(64) NOT NULL, | ||
`status` VARCHAR(20) NOT NULL DEFAULT 'pending', | ||
`created` DATETIME(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0), | ||
`updated` DATETIME(0) NULL, | ||
`expires` DATETIME(0) NOT NULL, | ||
|
||
UNIQUE INDEX `Agreement_inflation_adjustments_token_key`(`token`), | ||
INDEX `Agreement_inflation_adjustments_agreement_ID_agreement_type_idx`(`agreement_ID`, `agreement_type`), | ||
INDEX `Agreement_inflation_adjustments_status_idx`(`status`), | ||
INDEX `Agreement_inflation_adjustments_expires_idx`(`expires`), | ||
PRIMARY KEY (`ID`) | ||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; |
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