package com.yaoai.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("graph_steps")
public class GraphStep {

    @TableId(type = IdType.AUTO)
    private Long id;
    private Long runId;
    private String stepKey;
    private String stepName;
    private String agentType;  // DECISION|EXECUTOR|SUPERVISION
    private String status;     // PENDING|RUNNING|DONE|FAILED|SKIPPED
    private String score;      // A|B|C|D (supervision only)
    private String scoreDetail;
    private String output;
    private Long durationMs;
    private LocalDateTime startedAt;
    private LocalDateTime doneAt;
    private Integer seq;
}
