28 lines
615 B
TypeScript
28 lines
615 B
TypeScript
import dotenv from 'dotenv';
|
|
dotenv.config();
|
|
import prisma from './src/utils/db';
|
|
|
|
async function seed() {
|
|
await prisma.legalDocument.create({
|
|
data: {
|
|
type: 'NDA',
|
|
version: '1.0',
|
|
content: 'This is the standard Non-Disclosure Agreement content...',
|
|
isActive: true,
|
|
}
|
|
});
|
|
|
|
await prisma.legalDocument.create({
|
|
data: {
|
|
type: 'MSA',
|
|
version: '1.0',
|
|
content: 'This is the standard Master Services Agreement content...',
|
|
isActive: true,
|
|
}
|
|
});
|
|
|
|
console.log('Documents seeded.');
|
|
}
|
|
|
|
seed().catch(console.error).finally(() => prisma.$disconnect());
|