Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /sahajrajmalla_greatapi /greatapi /db /admin /default.py
| from __future__ import annotations | |
| from enum import Enum | |
| from sqlalchemy import Column | |
| from sqlalchemy import DateTime | |
| from sqlalchemy import Enum as SQLAlchemyEnum | |
| from sqlalchemy import Integer | |
| from sqlalchemy import String | |
| from sqlalchemy.sql import func | |
| from greatapi.db.database import Base | |
| # from sqlalchemy import ForeignKey | |
| # from sqlalchemy.orm import relationship | |
| class CategoryEnum(str, Enum): | |
| edit = 'edit' | |
| create = 'create' | |
| delete = 'delete' | |
| class History(Base): | |
| __tablename__ = 'history' | |
| id = Column(Integer, primary_key=True, index=True, autoincrement=True) | |
| name = Column(String) | |
| category = Column(SQLAlchemyEnum(CategoryEnum)) | |
| created_date = Column(DateTime(timezone=True), server_default=func.now()) | |
| # blogs = relationship("Blog", back_populates="creator") | |
Xet Storage Details
- Size:
- 819 Bytes
- Xet hash:
- c30441c3a12eefbc02076e3d89bd622c7654f2fd629f2e18d6a18a5ac314cd35
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.