package com.loan.system.domain.entity;

import lombok.*;

import javax.persistence.*;
import java.time.Instant;


@Entity
@Table(name = "approval_record", indexes = {
        @Index(name = "idx_case_id", columnList = "case_id")
})
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ApprovalRecord extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @Column(name = "case_id")
    private Long caseId;

    @Column(name = "step_name", length = 100)
    private String stepName;

    @Column(name = "approver_id")
    private Long approverId;

    @Column(name = "decision", length = 20)
    private String decision;

    @Lob
    @Column(name = "comments")
    private String comments;

    @Column(name = "create_time")
    private String createTime;

    @Column(name = "update_time")
    private String updateTime;

    @Column(name = "is_delete")
    private Boolean isDelete;

}