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_app_link_category")
@Data
@EqualsAndHashCode(callSuper = true)
public class PortalAppLinkCategory extends BaseEntity {

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

    @TableField("design_id")
    @ChineseDescription("门户设计id")
    private Long designId;

    @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;

}