package com.sckw.payment.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 预付表
 *
 * @author xucaiqin
 * @date 2026-03-26 14:45:11
 */
@Schema(description = "预付表")
@Data
@TableName(value = "kwp_wallet_prepay")
public class KwpWalletPrepay {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键")
    private Long id;

    /**
     * 付款方 采购商
     */
    @TableField(value = "from_ent")
    @Schema(description = "付款方")
    private Long fromEnt;

    /**
     * 收款方 供应商
     */
    @TableField(value = "to_ent")
    @Schema(description = "收款方")
    private Long toEnt;

    /**
     * 订单号
     */
    @TableField(value = "order_no")
    @Schema(description = "中台订单号")
    private String orderNo;
    /**
     * 操作 1-提现 2-预付 3-支付 3-收益
     */
    @TableField(value = "`action`")
    @Schema(description = "操作 1-提现 2-预付 3-支付 3-收益")
    private Integer action;
    private String actionLabel;
    /**
     * 交易金额
     */
    @TableField(value = "money")
    @Schema(description = "交易金额")
    private Integer money;

    /**
     * 预付金额
     */
    @TableField(value = "prepay_amount")
    @Schema(description = "预付金额")
    private Integer prepayAmount;

    /**
     * 交易中金额
     */
    @TableField(value = "deal_amount")
    @Schema(description = "交易中金额")
    private Integer dealAmount;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @Schema(description = "备注")
    private String remark;

    /**
     * 状态 1-已提交 2-预付成功 3-预付失败
     */
    @TableField(value = "`status`")
    @Schema(description = "状态 1-已提交 2-预付成功 3-预付失败")
    private Integer status;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    @Schema(description = "创建人")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    @Schema(description = "更新人")
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 0-正常 1-删除
     */
    @TableField(value = "del_flag")
    @Schema(description = "0-正常 1-删除")
    private Integer delFlag;
}
