Skip to content

Instantly share code, notes, and snippets.

@jlcarrascof
Last active January 9, 2025 15:19
Show Gist options
  • Save jlcarrascof/9ff95668d1de727f7e58b2a33bb2903d to your computer and use it in GitHub Desktop.
Save jlcarrascof/9ff95668d1de727f7e58b2a33bb2903d to your computer and use it in GitHub Desktop.
Create suppliers in seed.mjs
// Create suppliers
await prisma.supplier.createMany({
data: [
{ name: 'Paints Supplier', contact: '[email protected]' },
{ name: 'Tools Supplier', contact: '[email protected]' },
{ name: 'Global Electronics Inc.', contact: '[email protected]', address:'123 Tech Park, Silicon Valley, CA', phone: '+1-555-123-4567', country: 'United States',
},
{ name: 'Innovative Supplies Ltd.', contact: '[email protected]', address: '456 Industrial Ave, Toronto, ON', phone: '+1-416-555-7890', country: 'Canada',
},
{ name: 'Tech Solutions GmbH', contact: '[email protected]', address: '789 Innovation Strasse, Berlin', phone: '+49-30-123-4567', country: 'Germany',
},
{ name: 'FutureWare Pvt. Ltd.', contact: '[email protected]', address: '101 IT Hub, Bengaluru, Karnataka', phone: '+91-80-555-6789', country: 'India',
},
{ name: 'GreenTech Co.', contact: '[email protected]', address: '202 Eco Lane, Sydney, NSW', phone: '+61-2-555-3456', country: 'Australia',
},
],
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment