ALTER TABLE IF EXISTS public.servizio
ADD COLUMN "onboardOk" boolean NOT NULL DEFAULT FALSE;

ALTER TABLE IF EXISTS public.ordini
ADD COLUMN amount_cent integer NOT NULL;

ALTER TABLE IF EXISTS public.ordini ADD COLUMN paymentmethod TEXT;

ALTER TABLE IF EXISTS public.ordini
ADD COLUMN paid_at TIMESTAMP WITHOUT TIME ZONE;

ALTER TABLE IF EXISTS public.ordini ADD COLUMN intent_id TEXT;

ALTER TABLE IF EXISTS public.ordini
ADD COLUMN paymentstatus "PaymentStatusEnum";

ALTER TABLE IF EXISTS public.ordini
ADD COLUMN condizioni TEXT NOT NULL;

ALTER TABLE IF EXISTS public.ordini
ADD COLUMN sconto integer NOT NULL DEFAULT 0;

INSERT INTO
    public.flags (id, VALUE)
VALUES (
        'STRIPE_DISABLED'::TEXT,
        FALSE::boolean
    );