CREATE TABLE `flagged_content` (
	`id` text PRIMARY KEY NOT NULL,
	`content_type` text NOT NULL,
	`content_id` text NOT NULL,
	`field_name` text NOT NULL,
	`notes` text DEFAULT '',
	`flag_count` integer DEFAULT 1 NOT NULL,
	`created_at` text DEFAULT (datetime('now')) NOT NULL,
	`updated_at` text DEFAULT (datetime('now')) NOT NULL
);
--> statement-breakpoint
CREATE INDEX `idx_flagged_content_type` ON `flagged_content` (`content_type`);
--> statement-breakpoint
CREATE INDEX `idx_flagged_content_id` ON `flagged_content` (`content_id`);
