core.orm.mixins.timestamp ========================= .. py:module:: core.orm.mixins.timestamp Classes ------- .. autoapisummary:: core.orm.mixins.timestamp.TimestampMixin Module Contents --------------- .. py:class:: TimestampMixin Mixin providing created/modified timestamps for all records. The columns are deferred loaded as this is primarily for logging and future forensics. .. py:method:: timestamp() -> datetime.datetime :staticmethod: .. py:attribute:: created :type: sqlalchemy.orm.Mapped[datetime.datetime] .. py:attribute:: modified :type: sqlalchemy.orm.Mapped[datetime.datetime | None] .. py:method:: force_update() -> None Forces the model to update by changing the modified parameter. .. py:method:: last_change() -> datetime.datetime Returns the self.modified if not NULL, else self.created. .. py:method:: _last_change_expression() -> sqlalchemy.sql.elements.ColumnElement[datetime.datetime] :classmethod: