Skip to content
Snippets Groups Projects
Commit 8809e260 authored by Prathviraj Suryakant Thokal's avatar Prathviraj Suryakant Thokal
Browse files

Changes in seed file

parent 28cd0af6
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