Files
manolia-alpha/server/src/app/models/knowledge.py
Robin COuret 02bc680982 add auth
2026-03-05 17:30:39 +01:00

8 lines
331 B
Python

from sqlmodel import Field, SQLModel, Relationship
class Knowledge(SQLModel, table=True):
id: int | None = Field(default=None, primary_key=True)
content: str = Field(index=True)
uri: str = Field(index=True)
questions: list["Question"] = Relationship(back_populates="knowledge", cascade_delete=True) # type: ignore