package com.hzs.common.domain.system.config;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzs.common.core.annotation.Transaction;
import com.hzs.common.core.constant.EnumsPrefixConstants;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 店铺等级配置
 * </p>
 *
 * @author hzs
 * @since 2023-05-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_STORE_LEVEL")
@KeySequence("BD_STORE_LEVEL_SEQ")
public class BdStoreLevel extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private Integer pkId;

    /**
     * 店铺级别名称
     */
    @TableField("STORE_LEVEL_NAME")
    private String storeLevelName;

    /**
     * 等级值 来源于枚举 ELevelValue
     */
    @Transaction(transactionKey = EnumsPrefixConstants.ELEVEL_VALUE)
    @TableField("LEVEL_VALUE")
    private Integer levelValue;

    @TableField(exist = false)
    private Integer levelValueVal;

    /**
     * 翻译key
     */
    @TableField("PK_TRANSACTION")
    private Integer pkTransaction;

    /**
     * 启用状态 0启用 1禁用
     */
    @TableField("ENABLE_STATE")
    private Integer enableState;

    /**
     * 图片
     */
    @TableField("PICTURE")
    private String picture;



}
