The hotel moved from .nitro to .hab bundles, so the imager must treat .hab like .nitro and the public avatar endpoints must accept the figure strings the client sends (including extra trailing segments such as `.0`, which the old FIGURE_RE rejected with a 400). - imager-upstream: relax FIGURE_RE, extend parseAvatarQuery test coverage - api/imaging/avatar + /imaging: shared validation, placeholder and ETag/304 - api/imaging/badge: single-flight upstream fetch and conditional responses - imager-http/imager-png: strong ETag helpers and APNG passthrough guard - csp + next/image: unoptimized external images, tightened CSP - deps: override postcss-selector-parser to ^7.1.6 - also fold in the pending drizzle draft snapshot and stray test cleanup
25 lines
1.1 KiB
SQL
25 lines
1.1 KiB
SQL
CREATE TABLE `website_daily_reward_claims` (
|
|
`id` bigint unsigned AUTO_INCREMENT NOT NULL,
|
|
`user_id` int NOT NULL,
|
|
`claim_date` date NOT NULL,
|
|
`streak` int unsigned NOT NULL DEFAULT 1,
|
|
`reward_day` int unsigned NOT NULL DEFAULT 1,
|
|
`currency` varchar(20) NOT NULL DEFAULT 'credits',
|
|
`amount` int NOT NULL DEFAULT 0,
|
|
`created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
CONSTRAINT `website_daily_reward_claims_id` PRIMARY KEY(`id`),
|
|
CONSTRAINT `daily_claim_user_date_uk` UNIQUE(`user_id`,`claim_date`)
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE TABLE `website_daily_rewards` (
|
|
`id` int unsigned AUTO_INCREMENT NOT NULL,
|
|
`day` int unsigned NOT NULL DEFAULT 1,
|
|
`currency` varchar(20) NOT NULL DEFAULT 'credits',
|
|
`amount` int NOT NULL DEFAULT 0,
|
|
`created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
`updated_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
CONSTRAINT `website_daily_rewards_id` PRIMARY KEY(`id`)
|
|
);
|
|
--> statement-breakpoint
|
|
ALTER TABLE `admin_audit_log` MODIFY COLUMN `before` mediumtext;--> statement-breakpoint
|
|
ALTER TABLE `admin_audit_log` MODIFY COLUMN `after` mediumtext; |