Files
ospab.host/ospabhost/backend/prisma/delete_windows_os.ts

10 lines
290 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function main() {
await prisma.operatingSystem.deleteMany({ where: { type: 'windows' } });
console.log('Все Windows Server ОС удалены!');
}
main().finally(() => prisma.$disconnect());