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.py from Talosware/talos-access: direct link, hf CLI and curl.
- Browser
- Download file 664 Bytes
-
https://huggingface.co/spaces/Talosware/talos-access/resolve/main/backend/app/models/section.py
- Command line
-
hf download hf://spaces/Talosware/talos-access/backend/app/models/section.py
-
curl -L -o section.py https://huggingface.co/spaces/Talosware/talos-access/resolve/main/backend/app/models/section.py
664 Bytes
| from sqlalchemy import Column, BigInteger, String, Integer, DateTime, ForeignKey | |
| from sqlalchemy import func | |
| from app.core.database import Base | |
| class Section(Base): | |
| __tablename__ = "sections" | |
| id = Column(BigInteger, primary_key=True, autoincrement=True) | |
| account_id = Column(BigInteger, ForeignKey("accounts.id"), nullable=False) | |
| subject_id = Column(BigInteger, ForeignKey("subjects.id"), nullable=True) | |
| name = Column(String(150), nullable=False) | |
| level = Column(String(50)) | |
| academic_period = Column(String(50)) | |
| max_students = Column(Integer, default=40) | |
| created_at = Column(DateTime(timezone=True), server_default=func.now()) | |