Spaces:
Sleeping
Sleeping
Download backend/app/models/dataset.py from Adisri99/ClusterBuster-API: direct link, hf CLI and curl.
- Browser
- Download file 477 Bytes
-
https://huggingface.co/spaces/Adisri99/ClusterBuster-API/resolve/main/backend/app/models/dataset.py
- Command line
-
hf download hf://spaces/Adisri99/ClusterBuster-API/backend/app/models/dataset.py
-
curl -L -o dataset.py https://huggingface.co/spaces/Adisri99/ClusterBuster-API/resolve/main/backend/app/models/dataset.py
477 Bytes
| from sqlalchemy import Column, Integer, String, Text | |
| from backend.app.db import Base | |
| class Dataset(Base): | |
| __tablename__ = "datasets" | |
| id = Column(String, primary_key=True, index=True) | |
| name = Column(String, nullable=False) | |
| file_path = Column(String, nullable=False) | |
| row_count = Column(Integer, nullable=False) | |
| column_count = Column(Integer, nullable=False) | |
| schema_json = Column(Text, nullable=False) | |
| profile_json = Column(Text, nullable=False) | |