add unique constraint to name in Entity schema