20 lines
524 B
Python
20 lines
524 B
Python
from uuid import U[tool.isort]
|
|
|
|
profile = "black"
|
|
multi_line_output = 3
|
|
force_grid_wrap = 0
|
|
combine_as_imports = true
|
|
use_parentheses = trueUID
|
|
|
|
from sqlalchemy import ForeignKey
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.database import Base
|
|
|
|
|
|
class PinnedMessage(Base):
|
|
__tablename__ = "pinned_message"
|
|
|
|
chat_id: Mapped[int] = mapped_column(ForeignKey("chat.id"))
|
|
message_id: Mapped[UUID] = mapped_column(primary_key=True)
|
|
user_id: Mapped[int] = mapped_column(ForeignKey("users.id"), primary_key=True)
|