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.math.BigDecimal;
import java.time.Instant;

@Entity
@Table(name = "collateral")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Collateral extends BaseEntity{
    private static final long serialVersionUID = 3L;
    @Column(name = "case_id")
    private Long caseId;

    @Column(name = "contract_id")
    private Long contractId;

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

    @Column(name = "collateral_type", length = 30)
    private String collateralType;

    @Column(name = "owner_customer_id")
    private Long ownerCustomerId;

    @Column(name = "allocated_amount", precision = 18, scale = 2)
    private BigDecimal allocatedAmount;

    @Column(name = "address", length = 500)
    private String address;

    @Column(name = "current_address", length = 255)
    private String currentAddress;

    @Column(name = "eval_price", precision = 18, scale = 2)
    private BigDecimal evalPrice;

    @Column(name = "is_involved_in_litigation")
    private Boolean isInvolvedInLitigation;

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

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

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

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

}