ITrackable

Interface for data objects that can track their changes, including logical deletion.

Implements: IChangeable

Description

The ITrackagle interface allows you to define data objects that can track their changes, including logical deletion.

Fields

create_time

The UTC time at which the object was created.

create_time: datetime

change_time

The UTC time at which the object was last changed (created, updated, or deleted).

change_time: datetime

deleted

The logical deletion flag. True when the object is deleted and None or false otherwise

deleted: datetime

Examples

class MyData(IStringIdentifiable, ITrackable):
    id = None
    ...
    change_time = None
    create_time = None
    deleted = None

See also