Spaces:
Sleeping
Sleeping
Download app/models/user.py from abdullah090809/Job_Tracker_API: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/spaces/abdullah090809/Job_Tracker_API/resolve/main/app/models/user.py
- Command line
-
hf download hf://spaces/abdullah090809/Job_Tracker_API/app/models/user.py
-
curl -L -o user.py https://huggingface.co/spaces/abdullah090809/Job_Tracker_API/resolve/main/app/models/user.py
580 Bytes
| from sqlalchemy import Column, DateTime, Integer, String, Text | |
| from sqlalchemy.sql import func | |
| from sqlalchemy.orm import relationship | |
| from app.cores.database import Base | |
| class User(Base): | |
| __tablename__ = "users" | |
| id = Column(Integer, primary_key=True, nullable=False) | |
| email = Column(String, unique=True, nullable=False) | |
| hashed_password = Column(String, nullable=False) | |
| resume_text = Column(Text, nullable=True) | |
| created_at = Column(DateTime(timezone=True), server_default=func.now()) | |
| applications = relationship("Application", back_populates="owner") |