CREATE TABLE public.wallets
(
    id         SERIAL PRIMARY KEY,
    partner_id INTEGER        NOT NULL,
    balance    DECIMAL(18, 2) NOT NULL DEFAULT 0.00,
    currency   VARCHAR(3)     NOT NULL,
    status     VARCHAR(50),
    created_at TIMESTAMP      NOT NULL DEFAULT NOW(),
    updated_at TIMESTAMP      NOT NULL DEFAULT NOW(),
    FOREIGN KEY (partner_id) REFERENCES partners (id) ON DELETE CASCADE
);