models.recyclable

Represents an interface that relates recycled objects with the recycled models.

Module Contents

Classes

Recyclable

Interface for associating recycled objects with its models.

class models.recyclable.Recyclable

Bases: python_accounting.models.Base

Interface for associating recycled objects with its models.

deleted_at: sqlalchemy.orm.Mapped[datetime.datetime]

The time the model was recycled.

Type:

(datetime, optional)

destroyed_at: sqlalchemy.orm.Mapped[datetime.datetime]

The time the model was recycled permanently deleted.

Type:

(datetime, optional)

recycled_type: sqlalchemy.orm.Mapped[str]

The class name of the recycled model.

Type:

(str)

history: sqlalchemy.orm.Mapped[List[Recycled]]

A list of deletions and restorations for the model.

Type:

(list)

__mapper_args__