Apps

  • id
  • labelName
  • schemaName

ContentModels

  • id
  • labelName
  • settings (jsonb)
    • icon
    • color
    • ...
  • tableName
  • status
  • appId

ContentModelFields

  • id
  • labelName
  • fieldName
  • fieldComponentId
  • description
  • isArray
  • isRequired
  • isUnique
  • isPrimaryKey
  • isForExternalDisplay
  • contentModelId

FieldComponents

  • id
  • labelName
  • pgType
  • esType
  • isArray

ContentModelRelations

  • id
  • relation
    • oneToOne
    • oneToMany
    • manyToOne
    • manyToMany
  • sourceContentModelId
  • targetContentModelId
  • sourceContentModelFieldId
  • targetContentModelFieldId
  • sourceContentModelFieldName
  • targetContentModelFieldName
  • tableName

SearchIndexes

  • id
  • labelName
  • indexAlias
  • indexName
  • status
  • contentModelId

SearchIndexViews

  • id
  • labelName
  • components (jsonb)
    • search
    • result
    • filters
  • settings (jsonb)
  • searchIndexId

need discussion

  • 在ContentModelRelations中创建关联后,是否需要到ContentModelRelations中创建对应的外键字段记录
    • 查询contentModel的所有fields
    • 编辑contentModel数据
    • 数据同步到es中
    • 字段后续workflow和权限设置
  • 除了ContentModelRelations表以外,是否还需要额外的表来保存pg表的字段数据
    • 暂时不需要,能通过当前表映射得到
  • 是否需要使用searchIndexFields来保存es的mapping
    • 暂时不需要,可以通过api拿到当前es的mappings

further think

  • relation中的dominant的概念,例如查titan时,自动把skill查出来,但是查skill时,不会吧titan也查出来
  • contentmodel关联,存在多级嵌套,向searchindex创建index和同步数据时的关联实体选择
  • 当前阶段contentmodel到searchindex同步方式

results matching ""

    No results matching ""