package com.czg.product.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import java.io.Serial;

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

/**
 * 耗材付款记录 实体类。
 *
 * @author zs
 * @since 2025-04-03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("tb_cons_pay_record")
@Accessors(chain = true)
public class ConsPayRecord implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 供应商id
     */
    private Long vendorId;

    /**
     * 出入库id
     */
    private Long flowId;

    /**
     * 付款金额
     */
    private BigDecimal amount;

    /**
     * 付款方式 支付宝 微信 银行卡 现金
     */
    private String type;

    /**
     * 付款备注
     */
    private String remark;

    /**
     * 操作员工id
     */
    private Long userId;

    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

}
