package com.loan.system.domain.entity;

import lombok.*;

import javax.persistence.*;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.Instant;


@Entity
@Table(name = "repayment_record")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RepaymentRecord extends BaseEntity {
    private static final long serialVersionUID = 19L;

    @Column(name = "repayment_id")
    private Long repaymentId;

    @Column(name = "amount", precision = 18, scale = 2)
    private Double amount;

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

    @Size(max = 200)
    @Column(name = "repay_bank", length = 200)
    private String repayBank;

    @Size(max = 200)
    @Column(name = "repay_location", length = 200)
    private String repayLocation;

    @Size(max = 20)
    @Column(name = "repay_account", length = 20)
    private String repayAccount;

    @Column(name = "approval_comment")
    private String approvalComment;

    @Column(name = "approval_decision")
    private String approvalDecision;

    @Column(name = "approval_user_id")
    private Long approvalUserId;

    @Column(name = "is_interest")
    private Boolean isInterest;

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

}