How to apply required, unique or retain features to any column?