import { PrismaClient } from '@prisma/client'; const prisma = new PrismaClient(); async function main() { const presets = [ // type, categorie, modifier, bank_code ['REGULAR' ,'SHIFT', 1.0 , 'G1'], ['EVENING' ,'SHIFT', 1.25, 'G43'], ['Emergency','SHIFT', 2 , 'G48'], ['HOLIDAY' ,'SHIFT', 2.0 , 'G700'], ['EXPENSES','EXPENSE', 1.0 , 'G517'], ['MILEAGE' ,'EXPENSE', 0.72, 'G57'], ['PER_DIEM','EXPENSE', 1.0 , 'G502'], ['SICK' ,'LEAVE', 1.0, 'G105'], ['VACATION' ,'LEAVE', 1.0, 'G305'], ]; await prisma.bankCodes.createMany({ data: presets.map(([type, categorie, modifier, bank_code]) => ({ type: String(type), categorie: String(categorie), modifier: Number(modifier), bank_code: String(bank_code), })), skipDuplicates: true, }); console.log('✓ BankCodes: 9 rows'); } main().finally(() => prisma.$disconnect());