ReadonlycurrentLive object (same reference as the tracked entity).
ReadonlyoriginalSnapshot of the values at the time the entity was last loaded/saved.
ReadonlystateCurrent state of the entry.
Returns true when a specific field has changed since the last
snapshot, or true when any field has changed when called without
arguments.
Optionalfield: keyof TReset all changes to the snapshot values and transition state back
to 'Unchanged' (or 'Added' if the entity was never persisted).
Public view of a tracked entry, exposed via
db.entry(entity).