Version
The Version class extends the Record class and represents a specific version of a record. It includes properties for managing version information such as the version ID, creation dates, and comments, and provides methods to revert to a specific version.
Properties:
versionId: string
ID of this version.createdOn: Date
The date this version was created.completedOn: Date
The date this version was completed.
Methods:
revertoToThis()
Reverts the current record to this specific version. This is useful if you want to roll back to an earlier version.