Spaces:
Sleeping
Sleeping
Download app/models/sql_models.py from Nilyzz/clausewatch-api: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/spaces/Nilyzz/clausewatch-api/resolve/main/app/models/sql_models.py
- Command line
-
hf download hf://spaces/Nilyzz/clausewatch-api/app/models/sql_models.py
-
curl -L -o sql_models.py https://huggingface.co/spaces/Nilyzz/clausewatch-api/resolve/main/app/models/sql_models.py
460 Bytes
| from sqlalchemy import Column, Integer, String, Float, DateTime | |
| from datetime import datetime | |
| from app.core.database import Base | |
| class AnalysisRecord(Base): | |
| __tablename__ = "analysis_history" | |
| id = Column(Integer, primary_key=True, index=True) | |
| filename = Column(String, index=True) | |
| upload_date = Column(DateTime, default=datetime.utcnow) | |
| risk_score = Column(Integer) | |
| total_clauses = Column(Integer) | |
| risky_clauses = Column(Integer) | |