| 1234567891011121314151617 |
- from __future__ import annotations
- from pydantic import ConfigDict
- from sqlmodel import SQLModel
- class TableModel(SQLModel, table=False):
- """Base model for database tables with common fields.
-
- This is a mixin class that should not be used directly.
- Subclasses must set table=True explicitly.
- """
-
- model_config = ConfigDict(
- validate_assignment=True,
- from_attributes=True,
- )
|