package com.loan.system.domain.entity;

import lombok.*;

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

@Entity
@Table(name = "collateral_record")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CollateralRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

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

    @Column(name = "collateral_id")
    private Long collateralId;

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

    @Column(name = "user_id")
    private Long userId;

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

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

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

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