Skip to content
Snippets Groups Projects
Commit 90d3c7cd authored by Roshan Suvarnkar's avatar Roshan Suvarnkar
Browse files

Merge branch 'seedFileHotFix' into 'develop-beta'

Changes in seed file

See merge request !30
parents 28cd0af6 8809e260
No related branches found
No related tags found
1 merge request!30Changes in seed file
......@@ -1166,6 +1166,18 @@ const hospitalForeignKeys: ForeignKeyConfig<(typeof hospitals)[0]>[] = [
childReferenceKey: 'healthcareName',
childForeignKeyField: 'healthcare_type_id',
},
{
parentModel: 'user',
parentLookupKey: 'name',
childReferenceKey: 'userName',
childForeignKeyField: 'created_by',
},
{
parentModel: 'user',
parentLookupKey: 'name',
childReferenceKey: 'userName',
childForeignKeyField: 'updated_by',
}
];
const healthCareMaster: Array<{
......@@ -1630,12 +1642,6 @@ async function run() {
pincodeForeignKeys,
);
await seedModel(
prisma,
'hospital_corporate' as keyof PrismaService,
hospitalCorporateData,
);
await seedWithMultipleParents(
prisma,
'hospital_corporate', // model name in PrismaService
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment