mirror of
https://github.com/TronoSfera/Law.git
synced 2026-05-18 10:03:45 +03:00
15 lines
511 B
Python
15 lines
511 B
Python
import uuid
|
|
|
|
from sqlalchemy import String
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.db.session import Base
|
|
from app.models.common import TimestampMixin, UUIDMixin
|
|
|
|
|
|
class Client(Base, UUIDMixin, TimestampMixin):
|
|
__tablename__ = "clients"
|
|
|
|
full_name: Mapped[str] = mapped_column(String(200), nullable=False)
|
|
phone: Mapped[str] = mapped_column(String(30), nullable=False, unique=True, index=True)
|
|
email: Mapped[str | None] = mapped_column(String(255), nullable=True, index=True)
|