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:32:05
 */
@Schema(description = "提现记录表")
@Data
@TableName(value = "kwp_wallet_cash")
public class KwpWalletCash {
    /**
     * 主键
     */
    @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;

    /**
     * 交易金额
     */
    @TableField(value = "amount")
    @Schema(description = "交易金额")
    private Long amount;

    /**
     * 可提现金额
     */
    @TableField(value = "cash_amount")
    @Schema(description = "可提现金额")
    private Long cashAmount;

    /**
     * 凭证
     */
    @TableField(value = "img")
    @Schema(description = "凭证")
    private String img;

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

    /**
     * 状态 1-成功 2-失败 3-提现中
     */
    @TableField(value = "`status`")
    @Schema(description = "状态 1-成功 2-失败")
    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;
}
