Modified classes Deal, DealStatus, Measurement with nulable, uniqe, length parameters and @NotNull annotation