| 1 | CREATE TABLE "invoice_conversion_rates" ( |
| 2 | "id" text PRIMARY KEY |
| 3 | "invoice_id" text NOT NULL |
| 4 | "from_currency" text NOT NULL |
| 5 | "to_currency" text NOT NULL |
| 6 | "rate" numeric(24 |
| 7 | "captured_at" timestamp DEFAULT |
| 8 | CONSTRAINT "invoice_conversion_rates_invoice_id_from_currency_to_currency_unique" UNIQUE |
| 9 | ); |
| 10 | --> statement-breakpoint |
| 11 | ALTER TABLE "invoice_conversion_rates" ADD |