package cn.stylefeng.team.form.modular.component.entity;

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

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

@TableName("devops_form_component_category")
@Data
@EqualsAndHashCode(callSuper = true)
public class FormComponentCategory extends BaseBusinessEntity {

    @TableId(value = "component_category_id", type = IdType.ASSIGN_ID)
    @ChineseDescription("表单组件分类id")
    private Long componentCategoryId;

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

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

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

    @TableField(exist = false)
    @ChineseDescription("表单组件列表")
    private List<FormComponent> formComponentList;

}
