- Get Started
 - Framework
 
Menu
- Get Started
 - Framework
 
6.5.5. Configure Data Model Properties
In this chapter, you’ll learn how to configure data model properties.
Property’s Default Value#
Use the default method on a property's definition to specify the default value of a property.
For example:
In this example, you set the default value of the color enum property to black, and that of the age number property to 0.
Nullable Property#
Use the nullable method to indicate that a property’s value can be null.
For example:
Unique Property#
The unique method indicates that a property’s value must be unique in the database through a unique index.
For example:
In this example, multiple users can’t have the same email.
Was this chapter helpful?