Go from an empty test database to a production-realistic patient population in minutes, with no PHI and no production snapshot to get signed off.
An empty test database doesn’t catch real bugs. A database full of copied production data is a compliance violation. Flock gives you the third option: realistic synthetic populations seeded directly into your schema.
Pidgeon CLI installed (dotnet tool install --global Pidgeon.CLI --version 0.1.0-beta.2), plus the Flock desktop app or Pro CLI (the flock command is not in the free community build)
A database with an existing schema (PostgreSQL, SQL Server, or MySQL)
Flock inserts records in FK-dependency order so referential integrity holds, and reports the rows inserted per table. All synthetic records are tagged for later identification and cleanup.
The seed command prints an FK-safe insert summary (rows per table, in dependency order). To confirm independently, count the tagged rows in your database:
psql "$DATABASE_URL" -c "SELECT count(*) FROM patients;"
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Pidgeon Health","colors":{"primary":"#E8A838","light":"#F0B840","dark":"#0D0D12"},"logo":{"light":"https://mintcdn.com/pidgeonhealth-3a6b24fe/7suRX2bVle2ha1mS/logo/pidgeon.png?fit=max\u0026auto=format\u0026n=7suRX2bVle2ha1mS\u0026q=85\u0026s=2ca942d31ab8021e56e2a9efcbae5bf2","dark":"https://mintcdn.com/pidgeonhealth-3a6b24fe/7suRX2bVle2ha1mS/logo/pidgeon.png?fit=max\u0026auto=format\u0026n=7suRX2bVle2ha1mS\u0026q=85\u0026s=2ca942d31ab8021e56e2a9efcbae5bf2"},"favicon":"https://mintcdn.com/pidgeonhealth-3a6b24fe/7suRX2bVle2ha1mS/favicon.ico?fit=max\u0026auto=format\u0026n=7suRX2bVle2ha1mS\u0026q=85\u0026s=6b87df0788a26a1f4998466dbd0516b7","appearance":{"default":"dark"},"navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://account.pidgeon.health"}},"footer":{"socials":{"github":"https://github.com/PidgeonHealth","x":"https://x.com/pidgeonhealth","linkedin":"https://linkedin.com/company/pidgeon-health"}},"search":{"prompt":"Search Pidgeon docs..."},"contextual":{"options":["copy","view","claude","cursor","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/PidgeonHealth"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/ktMpYfEp"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pidgeonhealth-3a6b24fe","hasAudioNarration":false,"actualSubdomain":"pidgeonhealth-3a6b24fe","customDomains":["docs.pidgeon.health"],"gitSource":{"type":"github","owner":"pidgeonhealth","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a714a02d38a89b19dca1214","collectionId":"1e30584e-fac7-4e31-9e46-eff28d460bc3","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a714a02d38a89b19dca1214"},"entitlements":{},"buildId":"6ae9485968675ea9cfd386ea:success","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"Documentation","count":46},{"language":"default","tag":"API Reference","count":12},{"language":"default","tag":"CLI Reference","count":9},{"language":"default","tag":"CLI","count":9},{"language":"default","tag":"Guides \u0026 Tutorials","count":8},{"language":"default","tag":"Post (Testing Tool)","count":8},{"language":"default","tag":"Desktop Apps","count":6},{"language":"default","tag":"Loft APIs","count":5},{"language":"default","tag":"Core APIs","count":4},{"language":"default","tag":"Conform (Conformance)","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"guides/seed-database-with-flock","slug":"/guides/seed-database-with-flock","pageMetadata":{"title":"Seed a Database with Flock","description":"Go from an empty test database to a production-realistic patient population in minutes, with no PHI and no production snapshot to get signed off.","href":"/guides/seed-database-with-flock"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Go from an empty test database to a production-realistic patient population in minutes, with no PHI and no production snapshot to get signed off.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`An empty test database doesn’t catch real bugs. A database full of copied production data is a compliance violation. Flock gives you the third option: realistic synthetic populations seeded directly into your schema.`}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Pidgeon CLI installed (`,_jsx(_components.code,{children:`dotnet tool install --global Pidgeon.CLI --version 0.1.0-beta.2`}),`), plus the Flock desktop app or Pro CLI (the `,_jsx(_components.code,{children:`flock`}),` command is not in the free community build)`]}),`\n`,_jsx(_components.li,{children:`A database with an existing schema (PostgreSQL, SQL Server, or MySQL)`}),`\n`,_jsx(_components.li,{children:`Database credentials with read/write access`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`step-1-connect-to-your-database`,children:`Step 1: Connect to your database`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pidgeon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` flock`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` connect`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --provider`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` postgres`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --connection`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"Host=localhost;Port=5432;Database=ehr_dev;Username=dev;Password=${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DB_PASSWORD`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Flock analyzes the schema and reports:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Tables classified as patient, encounter, clinical, financial, or reference`}),`\n`,_jsx(_components.li,{children:`Foreign key relationships mapped`}),`\n`,_jsx(_components.li,{children:`Column types and constraints detected`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`step-2-learn-patterns-from-existing-data-optional`,children:`Step 2: Learn patterns from existing data (optional)`}),`\n`,_jsx(_components.p,{children:`If your database already has sample data, Flock can learn its statistical distributions:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pidgeon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` flock`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` learn`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --sample`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 500`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This creates a profile that captures:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Column value distributions (age ranges, sex ratios)`}),`\n`,_jsx(_components.li,{children:`Referential patterns (which diagnosis codes appear together)`}),`\n`,_jsx(_components.li,{children:`Temporal patterns (encounter durations, admission-to-discharge intervals)`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`step-3-generate-a-synthetic-population`,children:`Step 3: Generate a synthetic population`}),`\n`,_jsx(_components.p,{children:`Generate 1,000 patients with related records, writing them to a directory the seed step can read:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pidgeon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` flock`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` generate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --count`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --format`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sql`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --state`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` TX`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --seed`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 42`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./seed-data/`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Flock generates:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Demographics`}),`: age, sex, race, and geography distributions matching US Census data`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Correlated conditions`}),`: realistic disease correlations (diabetes with hypertension, obesity with sleep apnea)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Temporal coherence`}),`: admissions before discharges, lab orders before results`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Family linkage`}),`: household structures and family relationships`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`step-4-preview-with-dry-run`,children:`Step 4: Preview with dry-run`}),`\n`,_jsx(_components.p,{children:`Before writing anything, preview the generated SQL:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pidgeon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` flock`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` seed`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --target`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` postgres`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --connection`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"Host=localhost;Port=5432;Database=ehr_dev;Username=dev;Password=${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DB_PASSWORD`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./seed-data/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dry-run`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This outputs the SQL INSERT statements in foreign-key order without executing them. Review to confirm the data looks correct.`}),`\n`,_jsx(Heading,{level:`2`,id:`step-5-seed-the-database`,children:`Step 5: Seed the database`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pidgeon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` flock`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` seed`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --target`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` postgres`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --connection`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"Host=localhost;Port=5432;Database=ehr_dev;Username=dev;Password=${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DB_PASSWORD`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./seed-data/`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Flock inserts records in FK-dependency order so referential integrity holds, and reports the rows inserted per table. All synthetic records are tagged for later identification and cleanup.`}),`\n`,_jsx(Heading,{level:`2`,id:`step-6-verify-the-results`,children:`Step 6: Verify the results`}),`\n`,_jsx(_components.p,{children:`The seed command prints an FK-safe insert summary (rows per table, in dependency order). To confirm independently, count the tagged rows in your database:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`psql`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DATABASE_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"SELECT count(*) FROM patients;\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`alternative-output-formats`,children:`Alternative output formats`}),`\n`,_jsx(_components.p,{children:`Flock can generate data in formats beyond SQL:`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`SQL INSERT`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pidgeon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` flock`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` generate`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --count`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --format`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sql`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./seed-data/`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`CSV`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pidgeon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` flock`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` generate`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --count`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --format`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` csv`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./seed-data/`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`HL7 Streams`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pidgeon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` flock`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` generate`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --count`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --format`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` hl7`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./seed-data/`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`FHIR Bundles`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pidgeon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` flock`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` generate`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --count`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --format`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fhir`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./seed-data/`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`clean-up-synthetic-data`,children:`Clean up synthetic data`}),`\n`,_jsx(_components.p,{children:`Remove all Flock-generated records when you’re done:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pidgeon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` flock`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cleanup`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --provider`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` postgres`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --connection`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"Host=localhost;Port=5432;Database=ehr_dev;Username=dev;Password=${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DB_PASSWORD`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Or via the API:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` DELETE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"http://localhost:5102/api/flock/seed/cleanup?connectionString=Host%3Dlocalhost%3BDatabase%3Dehr_dev\u0026provider=postgres\"`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:`Cleanup removes every record tagged as synthetic. This cannot be undone.`}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/flock/output-formats`,children:`Explore output formats`}),` for HL7 streams and FHIR bundles`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/guides/generate-realistic-test-data`,children:`Generate test messages`}),` from seeded population data`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/guides/monitor-mirth-with-loft`,children:`Monitor interfaces`}),` processing your synthetic data`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Seed a Database with Flock","description":"Go from an empty test database to a production-realistic patient population in minutes, with no PHI and no production snapshot to get signed off.","href":"/guides/seed-database-with-flock"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Step 1: Connect to your database","slug":"step-1-connect-to-your-database","depth":2,"children":[]},{"title":"Step 2: Learn patterns from existing data (optional)","slug":"step-2-learn-patterns-from-existing-data-optional","depth":2,"children":[]},{"title":"Step 3: Generate a synthetic population","slug":"step-3-generate-a-synthetic-population","depth":2,"children":[]},{"title":"Step 4: Preview with dry-run","slug":"step-4-preview-with-dry-run","depth":2,"children":[]},{"title":"Step 5: Seed the database","slug":"step-5-seed-the-database","depth":2,"children":[]},{"title":"Step 6: Verify the results","slug":"step-6-verify-the-results","depth":2,"children":[]},{"title":"Alternative output formats","slug":"alternative-output-formats","depth":2,"children":[]},{"title":"Clean up synthetic data","slug":"clean-up-synthetic-data","depth":2,"children":[]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"pidgeonhealth-3a6b24fe","siteName":"Pidgeon Health","title":"Seed a Database with Flock - Pidgeon Health","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-04T02:10:29.612Z","originalFileLocation":"guides/seed-database-with-flock.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Go from an empty test database to a production-realistic patient population in minutes, with no PHI and no production snapshot to get signed off.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Pidgeon Health\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pidgeonhealth-3a6b24fe/5L6ga9e4UnIx65dM/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pidgeonhealth-3a6b24fe/5L6ga9e4UnIx65dM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pidgeonhealth-3a6b24fe/5L6ga9e4UnIx65dM/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pidgeonhealth-3a6b24fe/5L6ga9e4UnIx65dM/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pidgeonhealth-3a6b24fe/5L6ga9e4UnIx65dM/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pidgeonhealth-3a6b24fe/5L6ga9e4UnIx65dM/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pidgeonhealth-3a6b24fe/5L6ga9e4UnIx65dM/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pidgeonhealth-3a6b24fe/5L6ga9e4UnIx65dM/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pidgeonhealth-3a6b24fe/5L6ga9e4UnIx65dM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Seed a Database with Flock - Pidgeon Health\">\u003cmeta data-mint-head property=\"og:description\" content=\"Go from an empty test database to a production-realistic patient population in minutes, with no PHI and no production snapshot to get signed off.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Pidgeon Health\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.pidgeon.health/guides/seed-database-with-flock\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pidgeonhealth-3a6b24fe.mintlify.app/_mintlify/api/og/v2?division=Guides+%26+Tutorials\u0026amp;title=Seed+a+Database+with+Flock\u0026amp;description=Go+from+an+empty+test+database+to+a+production-realistic+patient+population+in+minutes%2C+with+no+PHI+and+no+production+snapshot+to+get+signed+off.\u0026amp;theme=b6794d710d024ef855edcac9\u0026amp;signature=d574e0388dccf5fd8d4122182ab01f292d31438ab1358e56c93fe3e32215ed5b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Seed a Database with Flock - Pidgeon Health\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Go from an empty test database to a production-realistic patient population in minutes, with no PHI and no production snapshot to get signed off.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pidgeonhealth-3a6b24fe.mintlify.app/_mintlify/api/og/v2?division=Guides+%26+Tutorials\u0026amp;title=Seed+a+Database+with+Flock\u0026amp;description=Go+from+an+empty+test+database+to+a+production-realistic+patient+population+in+minutes%2C+with+no+PHI+and+no+production+snapshot+to+get+signed+off.\u0026amp;theme=b6794d710d024ef855edcac9\u0026amp;signature=d574e0388dccf5fd8d4122182ab01f292d31438ab1358e56c93fe3e32215ed5b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pidgeonhealth-3a6b24fe/5L6ga9e4UnIx65dM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Pidgeon Health\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#E8A838\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.pidgeon.health/guides/seed-database-with-flock\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/seed-database-with-flock.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.pidgeon.health/#organization\",\"name\":\"Pidgeon Health\",\"url\":\"https://docs.pidgeon.health\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pidgeonhealth-3a6b24fe/7suRX2bVle2ha1mS/logo/pidgeon.png?fit=max\u0026auto=format\u0026n=7suRX2bVle2ha1mS\u0026q=85\u0026s=2ca942d31ab8021e56e2a9efcbae5bf2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.pidgeon.health#website\",\"name\":\"Pidgeon Health\",\"url\":\"https://docs.pidgeon.health\",\"publisher\":{\"@id\":\"https://docs.pidgeon.health/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.pidgeon.health/guides/seed-database-with-flock#webpage\",\"url\":\"https://docs.pidgeon.health/guides/seed-database-with-flock\",\"name\":\"Seed a Database with Flock\",\"description\":\"Go from an empty test database to a production-realistic patient population in minutes, with no PHI and no production snapshot to get signed off.\",\"dateModified\":\"2026-08-04T02:10:29.612Z\",\"isPartOf\":{\"@id\":\"https://docs.pidgeon.health#website\"},\"breadcrumb\":{\"@id\":\"https://docs.pidgeon.health/guides/seed-database-with-flock#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.pidgeon.health/guides/seed-database-with-flock#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides \u0026 Tutorials\",\"item\":\"https://docs.pidgeon.health/guides/public-packages-quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Seed a Database with Flock\",\"item\":\"https://docs.pidgeon.health/guides/seed-database-with-flock\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.pidgeon.health/guides/seed-database-with-flock#article\",\"headline\":\"Seed a Database with Flock\",\"name\":\"Seed a Database with Flock\",\"description\":\"Go from an empty test database to a production-realistic patient population in minutes, with no PHI and no production snapshot to get signed off.\",\"url\":\"https://docs.pidgeon.health/guides/seed-database-with-flock\",\"mainEntityOfPage\":{\"@id\":\"https://docs.pidgeon.health/guides/seed-database-with-flock#webpage\"},\"dateModified\":\"2026-08-04T02:10:29.612Z\",\"publisher\":{\"@id\":\"https://docs.pidgeon.health/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.pidgeon.health#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Pidgeon Health\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Pidgeon Health","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/PidgeonHealth"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/ktMpYfEp"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","icon":"rocket","pages":[{"title":"Introduction","href":"/getting-started/introduction"},{"title":"CLI Quickstart","href":"/getting-started/quickstart-cli"},{"title":"Desktop Quickstart","href":"/getting-started/quickstart-desktop"},{"title":"Your Pidgeon account","href":"/getting-started/account"}]},{"group":"Install","icon":"download","pages":[{"title":"Install on Windows","href":"/getting-started/install-windows"},{"title":"Install on macOS","href":"/getting-started/install-macos"},{"title":"Install on Linux","href":"/getting-started/install-linux"}]},{"group":"Desktop Apps","icon":"grid-2","pages":[{"title":"Get started with Pidgeon (the launcher)","href":"/getting-started/launcher"},{"title":"Get started with Post","href":"/getting-started/post"},{"title":"Get started with Conform","href":"/getting-started/conform"},{"title":"Get started with Flock","href":"/getting-started/flock"},{"title":"Get started with Loft","href":"/getting-started/loft"},{"title":"Get started with Migrate","href":"/getting-started/migrate"}]},{"group":"Post (Testing Tool)","icon":"paper-plane","pages":[{"title":"Message Generation","href":"/post/message-generation"},{"title":"Validation","href":"/post/validation"},{"title":"Diff","href":"/post/diff"},{"title":"De-identification","href":"/post/de-identification"},{"title":"Vendor Profiles","href":"/post/vendor-profiles"},{"title":"Workflow Wizard","href":"/post/workflow-wizard"},{"title":"AI Triage","href":"/post/ai-triage"},{"title":"Datasets \u0026 Data Packages","href":"/post/datasets"}]},{"group":"Conform (Conformance)","icon":"circle-check","pages":[{"title":"Conform overview","href":"/conform/overview"},{"title":"CMS-0057-F","href":"/conform/cms-0057-f"},{"title":"Running conformance","href":"/conform/running-conformance"},{"title":"Evidence and CI","href":"/conform/evidence-and-ci"}]},{"group":"Flock (Population Engine)","icon":"users","pages":[{"title":"Flock Overview","href":"/flock/overview"},{"title":"Schema Intelligence","href":"/flock/schema-intelligence"},{"title":"Population Generation","href":"/flock/population-generation"},{"title":"Output Formats","href":"/flock/output-formats"}]},{"group":"Loft (Observability)","icon":"tower-observation","pages":[{"title":"Loft Overview","href":"/loft/overview"},{"title":"Interface Monitoring","href":"/loft/interface-monitoring"},{"title":"Alerting","href":"/loft/alerting"}]},{"group":"Migrate (Bulk Data Migration)","icon":"arrow-right-arrow-left","pages":[{"title":"Migrate overview","href":"/migrate/overview"},{"title":"Bulk Data export","href":"/migrate/bulk-data"},{"title":"Mapping and analysis","href":"/migrate/mapping"}]},{"group":"Guides \u0026 Tutorials","icon":"book-open","pages":[{"title":"Public packages quickstart","href":"/guides/public-packages-quickstart"},{"title":"Healthcare interface test-data field guide","href":"/guides/healthcare-interface-test-data-field-guide"},{"title":"Local-first human and agent workflow","href":"/guides/local-first-human-agent-workflow"},{"title":"Generate Realistic Test Data","href":"/guides/generate-realistic-test-data"},{"title":"De-identify Real Messages","href":"/guides/de-identify-real-messages"},{"title":"Build Test Scenarios with Workflow Wizard","href":"/guides/build-test-scenarios"},{"title":"Monitor Mirth Connect with Loft","description":"Stop finding out about interface failures from clinical staff. Point Loft at your Mirth channels in minutes.","href":"/guides/monitor-mirth-with-loft"},{"title":"Seed a Database with Flock","href":"/guides/seed-database-with-flock"}]},{"group":"Support","icon":"life-ring","pages":[{"title":"FAQ","description":"Accounts, data handling, supported standards, SmartScreen, the Bridge, and where to get help.","href":"/support/faq"},{"title":"Troubleshooting","href":"/support/troubleshooting"},{"title":"Known issues","href":"/support/known-issues"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/cli/global-options"}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]}]},"basePath":"","title":"Seed a Database with Flock - Pidgeon Health","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":[],"chunks":[]}