Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /modules /search /models /Query.py
| from uuid import uuid4 | |
| from datetime import datetime, timezone | |
| from sqlalchemy import Column, DateTime, String, UUID | |
| from cognee.infrastructure.databases.relational import Base | |
| class Query(Base): | |
| __tablename__ = "queries" | |
| id = Column(UUID, primary_key=True, default=uuid4) | |
| text = Column(String) | |
| query_type = Column(String) | |
| user_id = Column(UUID, index=True) | |
| # Dataset the search was scoped to, recorded only when it resolved to | |
| # exactly one. A search can fan out over several datasets (or every | |
| # dataset the user can read), and those have no single dataset to | |
| # attribute the query to, so they stay NULL. | |
| dataset_id = Column(UUID, index=True, nullable=True) | |
| created_at = Column( | |
| DateTime(timezone=True), default=lambda: datetime.now(timezone.utc), index=True | |
| ) | |
| updated_at = Column(DateTime(timezone=True), onupdate=lambda: datetime.now(timezone.utc)) | |
Xet Storage Details
- Size:
- 919 Bytes
- Xet hash:
- 89609792ed99a881b20f15574606fa7d63c42df589886ae5ad418f8f0cbeb786
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.