package cn.stylefeng.team.portal.modular.management.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@TableName("portal_common_app_link_category")
@Data
@EqualsAndHashCode(callSuper = true)
public class CommonAppLinkCategory extends BaseEntity {

    @TableId(value = "category_id", type = IdType.ASSIGN_ID)
    @ChineseDescription("主键id")
    private Long categoryId;

    @TableField("icon_type")
    @ChineseDescription("图标类型：1-文件id，2-选择图片")
    private Integer iconType;

    @TableField("icon_code")
    @ChineseDescription("图标编码")
    private String iconCode;

    @TableField("category_icon_file_id")
    @ChineseDescription("分类的图标")
    private Long categoryIconFileId;

    @TableField("category_name")
    @ChineseDescription("应用链接分类名称")
    private String categoryName;

    @TableField("fld_sort")
    @ChineseDescription("类别的顺序")
    private BigDecimal fldSort;

    @TableField(value = "version_flag", fill = FieldFill.INSERT)
    @ChineseDescription("乐观锁")
    @Version
    private Long versionFlag;

    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @ChineseDescription("是否删除：Y-删除，N-未删除")
    @TableLogic
    private String delFlag;

    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    @ChineseDescription("租户id")
    private Long tenantId;

}