CREATE TABLE IF NOT EXISTS reported_issues (
    id BIGSERIAL PRIMARY KEY,
    customer_id BIGINT NOT NULL,
    subject TEXT NOT NULL,
    description TEXT NOT NULL,
    issue_type TEXT NOT NULL, -- e.g., "deposit", "withdrawal", "bet", "technical"
    status TEXT NOT NULL DEFAULT 'pending', -- pending, in_progress, resolved, rejected
    metadata JSONB,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

