fixed uniqueness scope for apartment model