package cn.stylefeng.team.meta.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;

@TableName("devops_meta_definition")
@Data
@EqualsAndHashCode(callSuper = true)
public class MetaDefinition extends BaseBusinessEntity {

    @TableId(value = "meta_definition_id", type = IdType.ASSIGN_ID)
    @ChineseDescription("模型定义id")
    private Long metaDefinitionId;

    @TableField("business_category_id")
    @ChineseDescription("所属业务分类id")
    private Long businessCategoryId;

    @TableField("business_id")
    @ChineseDescription("所属业务id")
    private Long businessId;

    @TableField("meta_model_id")
    @ChineseDescription("所属模型id")
    private Long metaModelId;

    @TableField("fld_version")
    @ChineseDescription("模型定义的版本号，例如：1.0")
    private String fldVersion;

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

}
