Refactor companyTypes seeding and enhance host retrieval to include user email address
This commit is contained in:
@@ -250,9 +250,9 @@ async function main() {
|
||||
});
|
||||
|
||||
await prisma.companyTypes.upsert({
|
||||
where: { companyTypeName: 'Private Limited, Public Limited' },
|
||||
where: { companyTypeName: 'Private Limited' },
|
||||
update: {},
|
||||
create: { companyTypeName: 'Private Limited, Public Limited', displayOrder: 5 },
|
||||
create: { companyTypeName: 'Private Limited', displayOrder: 5 },
|
||||
});
|
||||
|
||||
await prisma.companyTypes.upsert({
|
||||
@@ -260,6 +260,12 @@ async function main() {
|
||||
update: {},
|
||||
create: { companyTypeName: 'Non-Profit Organisation', displayOrder: 6 },
|
||||
});
|
||||
|
||||
await prisma.companyTypes.upsert({
|
||||
where: { companyTypeName: 'Public Limited' },
|
||||
update: {},
|
||||
create: { companyTypeName: 'Public Limited', displayOrder: 7 },
|
||||
});
|
||||
|
||||
// ✅ Food Types
|
||||
await prisma.foodTypes.createMany({
|
||||
|
||||
Reference in New Issue
Block a user