--- create_ticket_indexes
CREATE INDEX IF NOT EXISTS idx_tickets_deleted_system_ticket
    ON tickets (deleted, system_ticket);

CREATE INDEX IF NOT EXISTS idx_tickets_parent_id 
    ON tickets (parent_id);
