Skip to main content

Module model

Module model 

Source
Expand description

The kind: model YAML document: a self-contained synthetic data model.

A SyntheticModel carries a complete normalized schema, an exact row count for every table, and every generation rule needed to produce data without its source dump. SyntheticFile is the entry point: it reads the version/kind envelope first, then deserializes into the role-specific, unknown-field-safe struct for that role.

Structs§

ColumnRule
A single column’s generation rule: an optional semantic annotation, an optional generator owner, and an ordered modifier pipeline.
GeneratorConfig
A registry-resolved generator invocation. kind selects the registered generator; the remaining fields are its typed arguments, opaque to the document model and resolved later by ExtensionRegistry.
ModelDefaults
Inherited table/column behavior defaults.
ModifierConfig
A registry-resolved modifier invocation; see GeneratorConfig.
OutputModel
Dialect and renderer defaults (output: in the complete model example).
PlannerConfig
A registry-resolved planner invocation; see GeneratorConfig.
ProfileInference
The inference explanation attached to a ProfileMetadata entry.
ProfileMetadata
Removable evidence recorded for one profiled column (profiles."table.column" in the complete model example). Deleting a model’s profiles map cannot change generation.
RelationshipModel
A declared generation relationship to another table.
RelationshipReference
The references: half of a RelationshipModel.
SourceModel
Provenance and fingerprint policy for the source dump a model was derived from (source: in the complete model example).
SourceValueUse
One place a resolved model’s rules persist literal values that originated in the source dump. Carries only the location and the rule kind — never the values themselves — so it is always safe to surface in a report.
SyntheticModel
A complete, self-contained synthetic data model.
TableModel
A single table’s complete generation rules.

Enums§

ChildDistribution
The fan-out distribution used to allocate a relationship child’s rows across its parents.
FingerprintPolicy
How strictly a model requires the source fingerprint to match.
InferenceMode
Whether columns without an explicit owner may fall back to schema-based heuristics, or must always be explicit.
InsertMode
How PostgreSQL row output is rendered.
ModelKind
Marker type accepting only the literal kind: model tag.
OutputMode
Whether rendering emits DDL, rows, or both.
RowsModel
How many rows a table produces, and how those rows are derived.
SyntheticFile
A parsed YAML document, tagged by its declared kind.
TableSeed
A table’s seed relative to the model’s top-level seed: inherit it, opt out of determinism entirely, or pin an independent seed.