| 12345678910111213141516 |
- from core_db import AuditMixin, Base, EntityMixin, VersionMixin
- from core_shared import JSONValue
- from sqlalchemy import String, Text
- from sqlalchemy.dialects.sqlite import JSON
- from sqlalchemy.orm import Mapped, mapped_column
- class ExecutionLog(EntityMixin, 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)
|