package com.kxs.user.api.model;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 余额支付交易账单表(KxsUserYuepay)表实体类
 *
 * @author 系统
 * @since 2024-04-29 14:20:11
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsUserYuepay extends Model<KxsUserYuepay> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    
    
    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * 新增时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "新增时间")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;


    /**
     * 删除标记，0未删除，1已删除
     */
    @Schema(description = "删除标记，0未删除，1已删除")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;


    /**
     * 版本
     */
    @Schema(description = "版本")
    private Integer version;


    /**
     * 交易编号
     */
    @Schema(description = "交易编号")
    private String tradeNo;


    /**
     * 订单交易编号
     */
    @Schema(description = "订单交易编号")
    private String outTradeNo;


    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;


    /**
     * 订单标题
     */
    @Schema(description = "订单标题")
    private String subject;


    /**
     * 公共参数 原路返回
     */
    @Schema(description = "公共参数 原路返回")
    private String passbackParams;


    /**
     * 交易状态
     */
    @Schema(description = "交易状态")
    private Integer tradeStatus;


    /**
     * 交易金额
     */
    @Schema(description = "交易金额")
    private BigDecimal tradeAmount;




}

