Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /modules /users /models /Principal.py
| from uuid import uuid4 | |
| from datetime import datetime, timezone | |
| from sqlalchemy import Column, String, DateTime, UUID | |
| from cognee.infrastructure.databases.relational import Base | |
| class Principal(Base): | |
| __tablename__ = "principals" | |
| id = Column(UUID, primary_key=True, index=True, default=uuid4) | |
| created_at = Column(DateTime(timezone=True), default=lambda: datetime.now(timezone.utc)) | |
| updated_at = Column(DateTime(timezone=True), onupdate=lambda: datetime.now(timezone.utc)) | |
| type = Column(String, nullable=False) | |
| __mapper_args__ = { | |
| "polymorphic_identity": "principal", | |
| "polymorphic_on": "type", | |
| } | |
Xet Storage Details
- Size:
- 644 Bytes
- Xet hash:
- cf42e412ed8ae92bb99d8ffb23c9ab17ae07a3f2f2befdfa78c9f2d56ad632b6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.