package cn.stylefeng.team.project.api.entity;

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

import java.math.BigDecimal;
import java.util.List;

@TableName("devops_business_category")
@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessCategory extends BaseBusinessEntity {

    @TableId(value = "business_category_id", type = IdType.ASSIGN_ID)
    @ChineseDescription("业务分类id")
    private Long businessCategoryId;

    @TableField("category_name")
    @ChineseDescription("分类名称")
    private String categoryName;

    @TableField("category_code")
    @ChineseDescription("分类编码")
    private String categoryCode;

    @TableField("fld_sort")
    @ChineseDescription("排序")
    private BigDecimal fldSort;

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

    @TableField(exist = false)
    @ChineseDescription("业务列表")
    private List<Business> businessList;

}
