CREATE TABLE `claims` (
	`id` text PRIMARY KEY NOT NULL,
	`task_id` text NOT NULL,
	`partner_id` text NOT NULL,
	`claimant_name` text NOT NULL,
	`claim_token` text NOT NULL,
	`quantity` integer NOT NULL,
	`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX `claims_claim_token_idx` ON `claims` (`claim_token`);--> statement-breakpoint
ALTER TABLE `distributions` ADD `claim_id` text;--> statement-breakpoint
ALTER TABLE `distributions` ADD `publish_screenshot_key` text;--> statement-breakpoint
ALTER TABLE `tasks` ADD `share_token` text;--> statement-breakpoint
CREATE UNIQUE INDEX `tasks_share_token_idx` ON `tasks` (`share_token`);