Archetype: doc_table.org.mustache
SQL-only reference-data table. No C++ or Qt generation. The *_table.org suffix
causes the org loader to dispatch this as a table model type, feeding
sql_schema_create.mustache via the sql profile in facet_catalogue.org.
See the Template variable reference and Codegen input org-file schema reference for the complete schema.
Template
The full template source. Edit here and re-tangle with
compass build --direct tangle_codegen_templates to regenerate
library/templates/doc_table.org.mustache.
{{! GENERATED FILE — tangled from projects/ores.codegen/library/templates/doc.org. Edit the org source. }}
:PROPERTIES:
:ID: {{id}}
:END:
#+title: {{title}}
#+description: {{description}}
#+type: ores.codegen.table
#+component: {{component}}
#+filetags: {{filetags}}
#+product: ores
#+schema: public
#+entity_singular: {{slug}}
#+entity_plural: {{entity_plural}}
#+has_tenant_id: {{has_tenant_id}}
#+coding_scheme: {{coding_scheme}}
#+image_id: false
#+created: {{date}}
#+updated: {{date}}
(One paragraph: what this table represents. Key constraints and business rules.)
* Primary key
:PROPERTIES:
:column: code
:type: text
:is_text: true
:END:
(Description of the primary key — the code column used as a lookup key.)
* Columns
* Validation function
:PROPERTIES:
:tenant_scope: both
:default:
:order_by: display_order
:END:
* Insert trigger
** Validations
| column | validation_function |
|--------+---------------------|
* See also