ALTER TABLE "invoice" ALTER COLUMN "client_id" DROP NOT NULL;--> statement-breakpoint
ALTER TABLE "invoice" ADD COLUMN "line_items" jsonb DEFAULT '[]'::jsonb NOT NULL;--> statement-breakpoint
ALTER TABLE "invoice" ADD COLUMN "emitter_info" jsonb;--> statement-breakpoint
ALTER TABLE "invoice" ADD COLUMN "client_info" jsonb;--> statement-breakpoint
ALTER TABLE "invoice" ADD COLUMN "vat_rate_bps" integer;--> statement-breakpoint
ALTER TABLE "invoice" ADD COLUMN "is_manual" boolean DEFAULT false NOT NULL;