11 lines
314 B
Python
11 lines
314 B
Python
from sqlalchemy import ForeignKey
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.database import Base
|
|
|
|
|
|
class Answer(Base):
|
|
__tablename__ = "answers"
|
|
|
|
self_id: Mapped[int] = mapped_column(ForeignKey("messages.id"), primary_key=True)
|
|
answer_id: Mapped[int] = mapped_column(ForeignKey("messages.id"))
|