PhoenixKitDocumentCreator. Schemas. DocumentSection
(PhoenixKitDocumentCreator v0.4.3)
Copy Markdown
View Source
Schema for a template-backed section within a composed document.
Each section links a document to a specific template at a given position, with per-section variable overrides and image configuration. Positions are unique per document (enforced by DB unique index).
Deleting the parent document cascades to its sections. Deleting the
referenced template nullifies template_uuid (the section survives but
would need re-generation).
Image substitution downstream is restricted to PNG, JPEG, and GIF formats
only. image_params keys are validated at the context layer (Task 7+).
Note: the opacity key within image_params is currently a no-op — stored
in DB for future activation when a two-pass batchUpdate path is implemented.
See GoogleDocsClient.build_single_image_request/2 for details.
Summary
Types
@type t() :: %PhoenixKitDocumentCreator.Schemas.DocumentSection{ __meta__: term(), created_by_uuid: term(), document: term(), document_uuid: term(), image_params: term(), inserted_at: term(), position: term(), template: term(), template_uuid: term(), updated_at: term(), uuid: term(), variable_values: term() }