base.py 271 B

1234567891011121314151617
  1. from typing import Optional, Union
  2. from sqlmodel import SQLModel
  3. from sqlmodel_serializers.types import Fields
  4. class BaseMeta:
  5. fields: Optional[Fields] = None
  6. omit: Optional[Fields] = None
  7. model: SQLModel
  8. optional: Union[Fields, str, None] = None