24 lines
434 B
Python
24 lines
434 B
Python
import uuid
|
|
|
|
from sqlalchemy import UUID
|
|
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
|
|
|
|
|
|
class Base(DeclarativeBase):
|
|
__abstract__ = True
|
|
|
|
id: Mapped[uuid.UUID] = mapped_column(
|
|
UUID(as_uuid=True),
|
|
primary_key=True,
|
|
default=uuid.uuid4,
|
|
)
|
|
name: Mapped[str]
|
|
|
|
|
|
class MaleNames(Base):
|
|
__tablename__ = "names_man"
|
|
|
|
|
|
class FemaleNames(Base):
|
|
__tablename__ = "names_woman"
|