PhoenixKitDocumentCreator.Schemas.TemplateTaxonomy (PhoenixKitDocumentCreator v0.7.0)

Copy Markdown View Source

Join row: one document Template's membership in one Category, with an optional group (type_uuid) within that category.

Replaces the single category_uuid/type_uuid FKs that used to live directly on phoenix_kit_doc_templates — a template may now hold several of these rows (one per category), each with its own group. The legacy columns are kept as a backward-compatibility mirror of the primary membership (see PhoenixKitDocumentCreator.Taxonomy) and must not be dropped until the ANDI consumer migrates.

Uniqueness: at most one row per (template_uuid, category_uuid) — a template picks one group per category.

Summary

Types

t()

@type t() :: %PhoenixKitDocumentCreator.Schemas.TemplateTaxonomy{
  __meta__: term(),
  category_uuid: term(),
  inserted_at: term(),
  template_uuid: term(),
  type_uuid: term(),
  updated_at: term(),
  uuid: term()
}

Functions

changeset(row, attrs)