Core/Housing: stage 35 persist Initiative reward execution state

This commit is contained in:
Gexo91
2026-09-12 18:15:05 +03:00
parent 9ba34169e3
commit 91847ad0da
@@ -0,0 +1,16 @@
CREATE TABLE IF NOT EXISTS `housing_initiative_reward_execution` (
`ClaimID` bigint unsigned NOT NULL,
`EntryID` int unsigned NOT NULL,
`GrantType` tinyint unsigned NOT NULL,
`AssetID` int unsigned NOT NULL,
`Quantity` int unsigned NOT NULL,
`State` tinyint unsigned NOT NULL DEFAULT '0',
`ObservedBefore` bigint unsigned NOT NULL DEFAULT '0',
`ExpectedAfter` bigint unsigned NOT NULL DEFAULT '0',
`ObservedAfter` bigint unsigned NOT NULL DEFAULT '0',
`StartedAt` bigint unsigned NOT NULL DEFAULT '0',
`UpdatedAt` bigint unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`ClaimID`,`EntryID`),
KEY `idx_housing_initiative_reward_execution_state` (`State`,`ClaimID`),
KEY `idx_housing_initiative_reward_execution_asset` (`GrantType`,`AssetID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;