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_sub")
public class KwpWalletSub {
    /**
     * 主键
     */
    @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 = "cash_amount")
    @Schema(description = "提现金额")
    private Long cashAmount;

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

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

    /**
     * 运费金额
     */
    @TableField(value = "freight_amount")
    @Schema(description = "运费金额")
    private Long freightAmount;

    /**
     * 进行中金额
     */
    @TableField(value = "processing_amount")
    @Schema(description = "进行中金额")
    private Long processingAmount;

    /**
     * 付款中金额
     */
    @TableField(value = "paying_amount")
    @Schema(description = "付款中金额")
    private Long payingAmount;

    /**
     * 渠道
     */
    @TableField(value = "channel")
    @Schema(description = "渠道")
    private String channel;

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

    /**
     * 创建人
     */
    @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;
}
