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;

@TableName("devops_form_component")
@Data
@EqualsAndHashCode(callSuper = true)
public class FormComponent extends BaseBusinessEntity {

    @TableId(value = "component_id", type = IdType.ASSIGN_ID)
    @ChineseDescription("表单组件id")
    private Long componentId;

    @TableField("component_category_id")
    @ChineseDescription("所属组件分类id")
    private Long componentCategoryId;

    @TableField("component_name")
    @ChineseDescription("表单组件名称")
    private String componentName;

    @TableField("component_code")
    @ChineseDescription("表单组件编码")
    private String componentCode;

    @TableField("component_icon")
    @ChineseDescription("组件图标，来自iconfont")
    private String componentIcon;

    @TableField("mobile_enable_flag")
    @ChineseDescription("启用移动端：1-开启，0-不开启")
    private Boolean mobileEnableFlag;

    @TableField("code_generator_flag")
    @ChineseDescription("启用代码生成：1-开启，0-不开启")
    private Boolean codeGeneratorFlag;

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

}
