Modified classes Deal, DealStatus, Measurement with nulable, uniqe, leng...

...th parameters and @NotNull annotation