ALTER TABLE "documents" ADD COLUMN "yacht_id" text;--> statement-breakpoint
ALTER TABLE "documents" ADD COLUMN "company_id" text;--> statement-breakpoint
ALTER TABLE "files" ADD COLUMN "yacht_id" text;--> statement-breakpoint
ALTER TABLE "files" ADD COLUMN "company_id" text;--> statement-breakpoint
CREATE INDEX "idx_documents_yacht" ON "documents" USING btree ("yacht_id");--> statement-breakpoint
CREATE INDEX "idx_documents_company" ON "documents" USING btree ("company_id");--> statement-breakpoint
CREATE INDEX "idx_files_yacht" ON "files" USING btree ("yacht_id");--> statement-breakpoint
CREATE INDEX "idx_files_company" ON "files" USING btree ("company_id");