/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.distribution.comment.model;

import com.baomidou.mybatisplus.annotation.*;
import com.yami.shop.distribution.comment.vo.DistributionLevelConditionDataVO;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName( "tz_distribution_level")
public class DistributionLevel implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 等级表
     */
    @TableId(type = IdType.AUTO)
    private Long levelId;

    /**
     * 等级名称
     */
    private String name;

    /**
     * 条件数据(json)
     */

    private String conditionData;

    /**
     * 级别
     */
    private Integer level;

    /**
     * 状态(0 启用 1禁用)
     */
    private Integer state;

    /**
     * 默认奖励
     */
    private Double awardNumber;

    /**
     * 默认邀请人奖励
     */
    private Double parentAwardNumber;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 等级所需条件
     */
    @TableField(exist = false)
    private DistributionLevelConditionDataVO distributionLevelConditionDataVO;

}