package com.loan.system.domain.entity;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.Instant;

@Entity
@Table(name = "steps")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Step extends BaseEntity{
    private static final long serialVersionUID = 22L;

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

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

    @Column(name = "status", length = 50)
    private String status;

    @Column(name = "user_id1")
    private Long userId1;

    @Column(name = "user_id2")
    private Long userId2;

    @Column(name = "begin_time")
    private String beginTime;

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

    @Column(name = "parent_id")
    private Long parentId;

    @Column(name = "pre_id")
    private Long preId;

    @Column(name = "next_id")
    private Long nextId;

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

}