Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /li-boxuan_OpenDevin /enterprise /storage /feedback.py
| from sqlalchemy import JSON, Column, DateTime, Enum, Integer, String, Text | |
| from sqlalchemy.sql import func | |
| from storage.base import Base | |
| class Feedback(Base): # type: ignore | |
| __tablename__ = 'feedback' | |
| id = Column(String, primary_key=True) | |
| version = Column(String, nullable=False) | |
| email = Column(String, nullable=False) | |
| polarity = Column( | |
| Enum('positive', 'negative', name='polarity_enum'), nullable=False | |
| ) | |
| permissions = Column( | |
| Enum('public', 'private', name='permissions_enum'), nullable=False | |
| ) | |
| trajectory = Column(JSON, nullable=True) | |
| class ConversationFeedback(Base): # type: ignore | |
| __tablename__ = 'conversation_feedback' | |
| id = Column(Integer, primary_key=True, autoincrement=True) | |
| conversation_id = Column(String, nullable=False, index=True) | |
| event_id = Column(Integer, nullable=True) | |
| rating = Column(Integer, nullable=False) | |
| reason = Column(Text, nullable=True) | |
| created_at = Column(DateTime, nullable=False, server_default=func.now()) | |
Xet Storage Details
- Size:
- 1.03 kB
- Xet hash:
- f6fce5c6c01ec1a0d0c8b34c990d926ab839b8e534cd0a5fc9057f236e3cbe8f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.