package com.loan.system.domain.entity;

import lombok.Getter;
import lombok.Setter;

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

@Getter
@Setter
@Entity
@Table(name = "stat_business_snapshot")
public class StatBusinessSnapshot extends BaseEntity{
    private static final long serialVersionUID = 20L;

    @Column(name = "stat_date")
    private LocalDate statDate;

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

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

    @Column(name = "application_count")
    private Integer applicationCount;

    @Column(name = "total_loan_amount", precision = 15, scale = 2)
    private BigDecimal totalLoanAmount;

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

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

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

}