apskel-pos-backend/migrations/000021_add_paid_status_to_orders.up.sql
aditya.siregar 4f5950543e init
2025-07-18 20:10:29 +07:00

3 lines
262 B
SQL

-- Add 'paid' status to orders table status constraint
ALTER TABLE orders DROP CONSTRAINT IF EXISTS orders_status_check;
ALTER TABLE orders ADD CONSTRAINT orders_status_check CHECK (status IN ('pending', 'preparing', 'ready', 'completed', 'cancelled', 'paid'));