package com.cool.store.entity.order;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 预分账明细表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "zxjp_pre_allocation_record")
public class PreAllocationRecordDO implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "order_id")
    private Long orderId;

    @Column(name = "shop_id")
    private Long shopId;

    @Column(name = "pay_no")
    private String payNo;

    @Column(name = "expense_type")
    private String expenseType;

    @Column(name = "payee_name")
    private String payeeName;

    @Column(name = "payee_code")
    private String payeeCode;

    @Column(name = "pay_amount")
    private BigDecimal payAmount;

    @Column(name = "allocation_status")
    private Integer allocationStatus;

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

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

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

    @Column(name = "deleted")
    private Integer deleted;
}
