package com.muchinfo.mtp3pojos.entity;

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 com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 用户默认结算账户表
 * </p>
 *
 * @author XKF
 * @since 2024-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("USERRECKONACCOUNT")
@ApiModel(value="Userreckonaccount对象", description="用户默认结算账户表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Userreckonaccount extends Model<Userreckonaccount> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    private Long userid;

    @ApiModelProperty(value = "币种ID")
    @TableField("CURRENCYID")
    private Integer currencyid;

    @ApiModelProperty(value = "默认结算资金账号ID(机构分润使用)")
    @TableField("RECKONACCOUNTID")
    private Long reckonaccountid;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATETIME")
    private Date updatetime;

    @ApiModelProperty(value = "默认账号类型 - 1:默认结算账号 2:默认接单账号")
    @TableField("DEFAULTACCOUNTTYPE")
    private Integer defaultaccounttype;

    @TableField(select = false)
    private String enumdicname;

    @Override
    public Serializable pkVal() {
        return this.userid;
    }

}
