| 80 | |
| 81 | |
| 82 | class Script(Base): |
| 83 | __tablename__ = "scripts" |
| 84 | |
| 85 | id: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=True) |
| 86 | job_id: Mapped[str] = mapped_column( |
| 87 | String(36), |
| 88 | ForeignKey("generation_jobs.id", ondelete="CASCADE"), |
| 89 | nullable=False, |
| 90 | index=True, |
| 91 | ) |
| 92 | model_name: Mapped[Optional[str]] = mapped_column(String(255), nullable=True) |
| 93 | content: Mapped[str] = mapped_column(Text, nullable=False) |
| 94 | created_at: Mapped[datetime] = mapped_column( |
| 95 | DateTime(timezone=True), server_default=func.now(), nullable=False |
| 96 | ) |
| 97 | |
| 98 | |
| 99 | class Artifact(Base): |
nothing calls this directly
no outgoing calls
no test coverage detected