Skip to content

Metadata Overview

metadata provides configuration options that control model behavior and organization.

The metadata section is defined within a model and supports configuration options:

example.dg
model example {
metadata {
count: 10
tags: {
"service": "user",
"team": "backend"
}
}
fields {
// field definitions
}
gens {
// generator implementations
}
}

Sets a default number of records that will be generated when no explicit count is provided.

metadata {
count: 5
}

Allows you to label models with string key-value pairs, which can be used to filter the models to generate the data for.

metadata {
tags: {
"service": "delivery",
"team": "backend",
"environment": "production"
}
}