ReadonlycreateCreates a value getter.
The type of value
The type of data.
An instance of the model that has the data.
ReadonlygetGets available choices for limiting the value of this property.
ReadonlygetGets the configuration passed into the property constructor.
ReadonlygetIf there is a constant value that never changes. (This is used above all else).
ReadonlygetIf there is a default value
ReadonlygetGets the ValueType of the property. Unless custom properties are used, the value is a PropertyType. Otherwise the value could be string for custom types.
ReadonlygetGets the id (foreign key) of the referenced model.
The ModelReference. (key, data, or instance)
ReadonlygetGets reference's model
ReadonlygetGets a validator for the property. This is not normally used. Instead for validation look at ModelInstance.validate
The getter for the value.
ReadonlygetFunction that exposes a zod schema for this property.
An extends a Property to add additional functions helpful for dealing with referenced models.