ALTER TABLE files_nodes
    ADD COLUMN IF NOT EXISTS trashed_at TIMESTAMPTZ,
    ADD COLUMN IF NOT EXISTS purge_after TIMESTAMPTZ;

CREATE INDEX IF NOT EXISTS files_nodes_purge_after_idx
    ON files_nodes(purge_after)
    WHERE purge_after IS NOT NULL;
