diff --git a/backend/internal/repository/postgres/migrations/0008_orders_payment_method.sql b/backend/internal/repository/postgres/migrations/0008_orders_payment_method.sql new file mode 100644 index 0000000..38e657d --- /dev/null +++ b/backend/internal/repository/postgres/migrations/0008_orders_payment_method.sql @@ -0,0 +1,7 @@ +-- Add payment_method column to orders table +-- This column tracks how the order was paid (pix, credit_card, debit_card) + +ALTER TABLE orders ADD COLUMN IF NOT EXISTS payment_method TEXT NOT NULL DEFAULT 'pix'; + +-- Add comment for documentation +COMMENT ON COLUMN orders.payment_method IS 'Payment method: pix, credit_card, debit_card';