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

import com.qqchen.deploy.backend.framework.domain.Entity;
import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * Jenkins构建信息实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@jakarta.persistence.Entity
@Table(name = "deploy_jenkins_build")
public class JenkinsBuild extends Entity<Long> {

    @Column(name = "build_number", nullable = false)
    private Integer buildNumber;

    @Column(name = "build_status", nullable = false)
    private String buildStatus;

    @Column(name = "build_url", nullable = false)
    private String buildUrl;

    @Column(name = "duration", nullable = false)
    private Long duration;

    @Column(name = "startTime", nullable = false)
    private LocalDateTime starttime;

    @Column(name = "actions", columnDefinition = "TEXT")
    private String actions;

    @Column(name = "external_system_id", nullable = false)
    private Long externalSystemId;

    @Column(name = "job_id", nullable = false)
    private Long jobId;

} 