Files
fastapi-toolsets/docs/reference/models.md
d3vyce f82225f995 feat: add WatchedFieldsMixin (#148)
* feat/add WatchedFieldsMixin and watch_fields decorator for field-change monitoring

* docs: add WatchedFieldsMixin

* feat: add on_event, on_create and on_delete

* docs: update README
2026-03-19 19:19:33 +01:00

717 B

models

Here's the reference for the SQLAlchemy model mixins provided by the models module.

You can import them directly from fastapi_toolsets.models:

from fastapi_toolsets.models import (
    ModelEvent,
    UUIDMixin,
    UUIDv7Mixin,
    CreatedAtMixin,
    UpdatedAtMixin,
    TimestampMixin,
    WatchedFieldsMixin,
    watch,
)

::: fastapi_toolsets.models.ModelEvent

::: fastapi_toolsets.models.UUIDMixin

::: fastapi_toolsets.models.UUIDv7Mixin

::: fastapi_toolsets.models.CreatedAtMixin

::: fastapi_toolsets.models.UpdatedAtMixin

::: fastapi_toolsets.models.TimestampMixin

::: fastapi_toolsets.models.WatchedFieldsMixin

::: fastapi_toolsets.models.watch