Spaces:
Sleeping
Sleeping
File size: 703 Bytes
868b252 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
from sqlalchemy import DateTime, String, Text, func
from sqlalchemy.orm import mapped_column
from reworkd_platform.db.base import Base
class AgentRun(Base):
__tablename__ = "agent_run"
user_id = mapped_column(String, nullable=False)
goal = mapped_column(Text, nullable=False)
create_date = mapped_column(
DateTime, name="create_date", server_default=func.now(), nullable=False
)
class AgentTask(Base):
__tablename__ = "agent_task"
run_id = mapped_column(String, nullable=False)
type_ = mapped_column(String, nullable=False, name="type")
create_date = mapped_column(
DateTime, name="create_date", server_default=func.now(), nullable=False
)
|