package com.cool.store.entity.fees;

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

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

/**
 * 门店平安钱包分账信息
 */
@Table(name = "zxjp_fees_shop_allocation_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ShopAllocationInfoDO {
    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 门店id
     */
    @Column(name = "shop_id")
    private Long shopId;

    /**
     * 费用类型
     */
    @Column(name = "expense_type")
    private String expenseType;

    /**
     * 收款公司名称
     */
    @Column(name = "payee_name")
    private String payeeName;

    /**
     * 收款公司code
     */
    @Column(name = "payee_code")
    private String payeeCode;

    /**
     * 金额
     */
    private BigDecimal amount;
    
    /**
     * 分账状态，1已分账 2分账失败 3待分账
     */
    private Integer status;
    
    /**
     * 分账失败原因
     */
    @Column(name = "fail_reason")
    private String failReason;

    /**
     * 创建人id
     */
    @Column(name = "create_user_id")
    private String createUserId;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新人id
     */
    @Column(name = "update_user_id")
    private String updateUserId;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;
}