PhoenixKitOG.Schemas.Template (PhoenixKitOG v0.3.7)

Copy Markdown View Source

A reusable OpenGraph design — canvas + ordered elements with variable bindings. Persisted as JSONB so the structure can evolve (new element types) without a schema change.

See AGENTS.md → "Canvas JSON shape" for the shape contract.

Summary

Functions

character varying column widths for phoenix_kit_og_templates, keyed by field name.

Types

t()

@type t() :: %PhoenixKitOG.Schemas.Template{
  __meta__: term(),
  canvas: map(),
  description: String.t() | nil,
  inserted_at: DateTime.t() | nil,
  name: String.t() | nil,
  preview_image_uuid: binary() | nil,
  updated_at: DateTime.t() | nil,
  uuid: binary() | nil
}

Functions

column_widths()

@spec column_widths() :: %{required(atom()) => pos_integer()}

character varying column widths for phoenix_kit_og_templates, keyed by field name.

The single source of truth PhoenixKitOG.Migrations' V1 DDL interpolates, so the migration chain and core's ExpectedSchema manifest can never independently disagree on a number.