govorov/backend/app/models/base.py

8 lines
272 B
Python
Raw Normal View History

2025-04-07 09:02:54 +02:00
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
from sqlalchemy import Integer
from typing import Annotated
# Define a base class using SQLAlchemy 2.0 style
class Base(DeclarativeBase):
# Define a primary key type annotation for convenience
pass