Spaces:
Sleeping
Sleeping
Update backend/app/models/dataset.py
Browse files
backend/app/models/dataset.py
CHANGED
|
@@ -1,12 +1,14 @@
|
|
| 1 |
from sqlalchemy import Column, Integer, String, Text
|
| 2 |
from backend.app.db import Base
|
| 3 |
|
|
|
|
| 4 |
class Dataset(Base):
|
| 5 |
__tablename__ = "datasets"
|
|
|
|
| 6 |
id = Column(String, primary_key=True, index=True)
|
| 7 |
name = Column(String, nullable=False)
|
| 8 |
file_path = Column(String, nullable=False)
|
| 9 |
row_count = Column(Integer, nullable=False)
|
| 10 |
column_count = Column(Integer, nullable=False)
|
| 11 |
schema_json = Column(Text, nullable=False)
|
| 12 |
-
profile_json = Column(Text, nullable=False)
|
|
|
|
| 1 |
from sqlalchemy import Column, Integer, String, Text
|
| 2 |
from backend.app.db import Base
|
| 3 |
|
| 4 |
+
|
| 5 |
class Dataset(Base):
|
| 6 |
__tablename__ = "datasets"
|
| 7 |
+
|
| 8 |
id = Column(String, primary_key=True, index=True)
|
| 9 |
name = Column(String, nullable=False)
|
| 10 |
file_path = Column(String, nullable=False)
|
| 11 |
row_count = Column(Integer, nullable=False)
|
| 12 |
column_count = Column(Integer, nullable=False)
|
| 13 |
schema_json = Column(Text, nullable=False)
|
| 14 |
+
profile_json = Column(Text, nullable=False)
|