repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | import uuid |
| #2 | |
| #3 | from sqlalchemy import TIMESTAMP, Column, Integer, String, Text, func |
| #4 | from sqlalchemy.orm import declarative_base |
| #5 | |
| #6 | Base = declarative_base() |
| #7 | metadata = Base.metadata |
| #8 | |
| #9 | |
| #10 | class DataSource(Base): |
| #11 | __tablename__ = "ec_data_sources" |
| #12 | |
| #13 | id = Column(String, primary_key=True, default=lambda: str(uuid.uuid4())) |
| #14 | app_id = Column(Text, index=True) |
| #15 | hash = Column(Text, index=True) |
| #16 | type = Column(Text, index=True) |
| #17 | value = Column(Text) |
| #18 | meta_data = Column(Text, name="metadata") |
| #19 | is_uploaded = Column(Integer, default=0) |
| #20 | |
| #21 | |
| #22 | class ChatHistory(Base): |
| #23 | __tablename__ = "ec_chat_history" |
| #24 | |
| #25 | app_id = Column(String, primary_key=True) |
| #26 | id = Column(String, primary_key=True) |
| #27 | session_id = Column(String, primary_key=True, index=True) |
| #28 | question = Column(Text) |
| #29 | answer = Column(Text) |
| #30 | meta_data = Column(Text, name="metadata") |
| #31 | created_at = Column(TIMESTAMP, default=func.current_timestamp(), index=True) |
| #32 |