Table Customization
customize() lets you tune generated data while keeping the rest of the schema
generation automatic.
FK Distribution Strategies
Section titled “FK Distribution Strategies”Control how child rows pick parent rows:
| Strategy | Behavior |
|---|---|
uniform | Equal probability per parent |
zipf | A few parents receive most child rows |
adversarial | First, middle, and last parents only |
single | All children point to one parent |
| custom callable | Return any Hypothesis strategy per FK |
Custom FK distribution callables receive the available parent primary keys and a draw context, and must return a Hypothesis strategy so values still shrink.