22 lines
433 B
TypeScript
22 lines
433 B
TypeScript
|
|
import { PrismaClient } from '@prisma/client';
|
||
|
|
|
||
|
|
const prisma = new PrismaClient();
|
||
|
|
|
||
|
|
async function main() {
|
||
|
|
console.log('Seeding database...');
|
||
|
|
|
||
|
|
// Seed data will be added as schemas are created in F-003, F-004, F-005
|
||
|
|
|
||
|
|
console.log('Seeding complete!');
|
||
|
|
}
|
||
|
|
|
||
|
|
main()
|
||
|
|
.then(async () => {
|
||
|
|
await prisma.$disconnect();
|
||
|
|
})
|
||
|
|
.catch(async (e) => {
|
||
|
|
console.error(e);
|
||
|
|
await prisma.$disconnect();
|
||
|
|
process.exit(1);
|
||
|
|
});
|