Optionaloptions: VirtualStringOptionsOptionalgetGetter function to compute the virtual string value
OptionalsetSetter function to handle setting the virtual string
OptionallengthMaximum length for validation (optional)
OptionaldependenciesArray of field names that this virtual field depends on
Compare this DataType with another DataType for equality
The DataType to compare with
true if the types are equal, false otherwise
Serialize a value for storage based on this DataType
The value to serialize
The serialized value
Check if this virtual string field has a getter
Check if this virtual string field has a setter
Get the dependencies for this virtual field
Get the maximum length for validation
VIRTUALSTRING - virtual string field with getter/setter support Does not create a database column but provides computed string values
Example