ALTER TABLE `cash_flows` ADD `parent_flow_id` integer;
--> statement-breakpoint
ALTER TABLE `cash_flows` ADD `installment_number` integer;
--> statement-breakpoint
ALTER TABLE `cash_flows` ADD `installment_count` integer;
--> statement-breakpoint
CREATE INDEX `idx_cash_flows_parent` ON `cash_flows` (`parent_flow_id`,`active`);
--> statement-breakpoint
PRAGMA optimize;
