chore: initial commit Dutra Store POS app
This commit is contained in:
9
supabase/migrations/20240103_add_payment_method.sql
Normal file
9
supabase/migrations/20240103_add_payment_method.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
-- Migration: add payment method fields to sales table
|
||||
-- Run this in Supabase SQL Editor before using payment features
|
||||
|
||||
ALTER TABLE sales
|
||||
ADD COLUMN IF NOT EXISTS payment_method text NOT NULL DEFAULT 'tunai',
|
||||
ADD COLUMN IF NOT EXISTS split_payment jsonb;
|
||||
|
||||
-- Optional: add index for filtering by payment method
|
||||
CREATE INDEX IF NOT EXISTS idx_sales_payment_method ON sales(payment_method);
|
||||
Reference in New Issue
Block a user