[FIX] Not null constraint cannot apply on discount when no default value available