package com.qqchen.deploy.backend.workflow.entity;

import com.qqchen.deploy.backend.framework.domain.Entity;
import jakarta.persistence.Column;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 工作流日志实体
 */
@Data
@Table(name = "workflow_log")
@jakarta.persistence.Entity
@EqualsAndHashCode(callSuper = true)
public class WorkflowLog extends Entity<Long> {
    
    /**
     * 工作流实例ID
     */
    @Column(name = "workflow_instance_id")
    private Long workflowInstanceId;
    
    /**
     * 节点实例ID
     */
    @Column(name = "node_instance_id")
    private Long nodeInstanceId;
    
    /**
     * 日志类型
     */
    @Column(name = "log_type", nullable = false)
    private String logType;
    
    /**
     * 日志级别
     */
    @Column(name = "log_level", nullable = false)
    private String logLevel;
    
    /**
     * 日志内容
     */
    @Column(columnDefinition = "TEXT", nullable = false)
    private String content;
}
