CREATE TABLE `campaign_logs` (
	`id` integer,
	`from` integer,
	`timestamp` integer NOT NULL,
	`type` text,
	`details` text NOT NULL,
	PRIMARY KEY(`id`, `from`, `timestamp`),
	FOREIGN KEY (`id`) REFERENCES `campaign`(`id`) ON UPDATE cascade ON DELETE cascade,
	FOREIGN KEY (`from`)
);
--> statement-breakpoint
ALTER TABLE `campaign` ADD `status` text DEFAULT 'PREPARING';--> statement-breakpoint
ALTER TABLE `campaign` ADD `inventory` text DEFAULT '[]';--> statement-breakpoint
ALTER TABLE `campaign` ADD `money` integer DEFAULT 0;