Optional
Readonly
apiThe raw api information provided in. When looking for a fleshed out version of this data look at ModelType.getApiInfo
Optional
Readonly
descriptionA helpful human-readable description that explains what the model is and what it is used for.
Optional
Readonly
displayA text used for displaying the name of the model in a UI.
Optional
Readonly
modelValidators of the overall model (rather than properties)
The name that this model exists within, such as an app. This is used to combine with the pluralName to create a unique name across a system that it is used in.
Recommended: If you are creating reusable libraries/packages for people, we recommend using the name of the package itself. Example: "@my-scoped-package/name"
If you are creating this model to be used locally, just use the "app" name that the model corresponds to. Example: "auth"
The namespace is also used in the auto-generation of RestInfo.endpoint. If you want to design the endpoint so that it looks/reads/flows better then consider overriding the endpoint yourself.
The primary name for the model and instances of the model. This should be a name for multiple of the model instances.
Optional
Readonly
primaryThe name of the property that has the unique id for the model. Used to uniquely identify instances of this model vs other ones.
The properties that make up the model.
Optional
Readonly
singularThe name for a model/instance where there is one of them.
Optional
Readonly
uniqueValidator that there is only a single value in the datastore that has the properties given. Example: ["name", "text"] This will make sure that there can only be a single row in the database that has a unique combination of name and text.
A minimum orm model definition