mirror of
https://github.com/d3vyce/fastapi-toolsets.git
synced 2026-04-16 06:36:26 +02:00
* 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
35 lines
717 B
Markdown
35 lines
717 B
Markdown
# `models`
|
|
|
|
Here's the reference for the SQLAlchemy model mixins provided by the `models` module.
|
|
|
|
You can import them directly from `fastapi_toolsets.models`:
|
|
|
|
```python
|
|
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
|