mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
24 lines
826 B
Python
24 lines
826 B
Python
from sqlalchemy import Column, DateTime, Integer, String, text
|
|
from storage.base import Base
|
|
|
|
|
|
class JiraConversation(Base): # type: ignore
|
|
__tablename__ = 'jira_conversations'
|
|
id = Column(Integer, primary_key=True, autoincrement=True)
|
|
conversation_id = Column(String, nullable=False, index=True)
|
|
issue_id = Column(String, nullable=False, index=True)
|
|
issue_key = Column(String, nullable=False, index=True)
|
|
parent_id = Column(String, nullable=True)
|
|
jira_user_id = Column(Integer, nullable=False, index=True)
|
|
created_at = Column(
|
|
DateTime,
|
|
server_default=text('CURRENT_TIMESTAMP'),
|
|
nullable=False,
|
|
)
|
|
updated_at = Column(
|
|
DateTime,
|
|
server_default=text('CURRENT_TIMESTAMP'),
|
|
onupdate=text('CURRENT_TIMESTAMP'),
|
|
nullable=False,
|
|
)
|