Spaces:
Runtime error
Runtime error
Greg
Claude Opus 4.7 (1M context)
Preparar despliegue en fly.io: monolito dockerizado + seeder demo
6aa6081 Download backend/app/models/section_subject.py from Talosware/talos-access: direct link, hf CLI and curl.
- Browser
- Download file 544 Bytes
-
https://huggingface.co/spaces/Talosware/talos-access/resolve/main/backend/app/models/section_subject.py
- Command line
-
hf download hf://spaces/Talosware/talos-access/backend/app/models/section_subject.py
-
curl -L -o section_subject.py https://huggingface.co/spaces/Talosware/talos-access/resolve/main/backend/app/models/section_subject.py
544 Bytes
| from sqlalchemy import Column, BigInteger, ForeignKey, PrimaryKeyConstraint | |
| from app.core.database import Base | |
| class SectionSubject(Base): | |
| __tablename__ = "section_subjects" | |
| section_id = Column(BigInteger, ForeignKey("sections.id", ondelete="CASCADE"), nullable=False) | |
| subject_id = Column(BigInteger, ForeignKey("subjects.id", ondelete="CASCADE"), nullable=False) | |
| account_id = Column(BigInteger, ForeignKey("accounts.id"), nullable=False) | |
| __table_args__ = ( | |
| PrimaryKeyConstraint("section_id", "subject_id"), | |
| ) | |