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§
- Column
Rule - A single column’s generation rule: an optional semantic annotation, an optional generator owner, and an ordered modifier pipeline.
- Generator
Config - A registry-resolved generator invocation.
kindselects the registered generator; the remaining fields are its typed arguments, opaque to the document model and resolved later byExtensionRegistry. - Model
Defaults - Inherited table/column behavior defaults.
- Modifier
Config - A registry-resolved modifier invocation; see
GeneratorConfig. - Output
Model - Dialect and renderer defaults (
output:in the complete model example). - Planner
Config - A registry-resolved planner invocation; see
GeneratorConfig. - Profile
Inference - The inference explanation attached to a
ProfileMetadataentry. - Profile
Metadata - Removable evidence recorded for one profiled column
(
profiles."table.column"in the complete model example). Deleting a model’sprofilesmap cannot change generation. - Relationship
Model - A declared generation relationship to another table.
- Relationship
Reference - The
references:half of aRelationshipModel. - Source
Model - Provenance and fingerprint policy for the source dump a model was
derived from (
source:in the complete model example). - Source
Value Use - 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.
- Synthetic
Model - A complete, self-contained synthetic data model.
- Table
Model - A single table’s complete generation rules.
Enums§
- Child
Distribution - The fan-out distribution used to allocate a relationship child’s rows across its parents.
- Fingerprint
Policy - How strictly a model requires the source fingerprint to match.
- Inference
Mode - Whether columns without an explicit owner may fall back to schema-based heuristics, or must always be explicit.
- Insert
Mode - How PostgreSQL row output is rendered.
- Model
Kind - Marker type accepting only the literal
kind: modeltag. - Output
Mode - Whether rendering emits DDL, rows, or both.
- Rows
Model - How many rows a table produces, and how those rows are derived.
- Synthetic
File - A parsed YAML document, tagged by its declared
kind. - Table
Seed - A table’s seed relative to the model’s top-level seed: inherit it, opt out of determinism entirely, or pin an independent seed.