Closed JaniPaasiluoto closed 3 years ago
Added a Book Model where title and author fields are required, other fields can be empty and are saved as null in that case. The field rating is validated so it must be between 1 to 10. The field mrp must be a positive integer.
title
author
null
rating
mrp
Added a Book Model where
title
andauthor
fields are required, other fields can be empty and are saved asnull
in that case. The fieldrating
is validated so it must be between 1 to 10. The fieldmrp
must be a positive integer.