set unique model fields