| 1234567891011121314151617 |
- from sqlalchemy import String, Text
- from sqlalchemy.dialects.sqlite import JSON
- from sqlalchemy.orm import Mapped, mapped_column
- from core_db import AuditMixin, Base, TenantMixin, VersionMixin
- from core_shared import JSONValue
- class ExecutionLog(TenantMixin, AuditMixin, VersionMixin, Base):
- __tablename__ = "execution_log"
- run_id: Mapped[str] = mapped_column(String(36), index=True)
- node_run_id: Mapped[str | None] = mapped_column(String(36), nullable=True, index=True)
- event_type: Mapped[str] = mapped_column(String(64), index=True)
- level: Mapped[str] = mapped_column(String(16), default="info")
- message: Mapped[str] = mapped_column(Text)
- detail_json: Mapped[dict[str, JSONValue] | None] = mapped_column(JSON, nullable=True)
|