Skip to content

Honouring RI (referential integrity) in generated data #321

Answered by christos-h
jsmith085 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @jsmith085 - synth import will automatically infer foreign keys. Constraints such as 'at least one' or 'zero or more' need to be defined explicitly with relative collection sizes (see -> https://www.getsynth.com/docs/getting_started/schema).

FK constraints can also be specified manually by using the same_as generator, see -> https://www.getsynth.com/docs/content/same-as

Hope this helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dan-schofer
Comment options

Answer selected by AlexMikhalev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants