package cn.stylefeng.team.meta.api.pojo;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;

import java.util.List;

@Data
public class MetaModelDTO {

    @ChineseDescription("模型名称")
    private String metaModelName;

    @ChineseDescription("原始模型编码")
    private String originMetaModelCode;

    @ChineseDescription("模型编码")
    private String metaModelCode;

    @ChineseDescription("系统编码，用于展示")
    private String systemCodeShow;

    @ChineseDescription("当前版本号，默认1.0")
    private String currentVersion;

    @ChineseDescription("是否是主表：Y-是，N-否")
    private String mainFlag;

    @ChineseDescription("子表中关联主表主键id的字段编码，例如子表中的user_id属性")
    private String subTableFieldCode;

    @ChineseDescription("子表类型：1-一对一，2-一对多")
    private Integer subTableType;

    @ChineseDescription("字段信息")
    private List<MetaFieldDTO> metaFieldList;

}
