package com.jeequan.jeepay.db.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.core.conditions.query.LambdaQueryWrapper;
import com.jeequan.jeepay.core.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 会员充值规则表
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2023-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_member_recharge_rule")
public class MemberRechargeRule extends BaseModel {

    public static final LambdaQueryWrapper<MemberRechargeRule> gw(){
        return new LambdaQueryWrapper<>();
    }

    private static final long serialVersionUID=1L;

    /**
     * 规则ID
     */
    @TableId(value = "rule_id")
    private String ruleId;

    /**
     * 所属商户
     */
    private String mchNo;

    /**
     * 充值金额
     */
    private Long rechargeAmount;

    /**
     * 赠送金额
     */
    private Long giveAmount;

    /**
     * 状态：0-停用 1-启用 
     */
    private Byte state;

    /**
     * 排序字段, 规则：正序
     */
    private Integer sort;

    /**
     * 门店id
     */
    private String storeId;

    /**
     * 门店名称
     */
    private String storeName;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;


    @TableField(exist = false)
    private Integer isAllStore;


}
