20 lines
488 B
TypeScript
20 lines
488 B
TypeScript
|
|
import { PrismaClient } from '@prisma/client';
|
||
|
|
|
||
|
|
const prisma = new PrismaClient();
|
||
|
|
|
||
|
|
async function main() {
|
||
|
|
// No default seed data — all content is created by the user.
|
||
|
|
// This script is safe to run multiple times (idempotent no-op).
|
||
|
|
console.log('RackMapper database is ready. No seed data configured.');
|
||
|
|
}
|
||
|
|
|
||
|
|
main()
|
||
|
|
.then(async () => {
|
||
|
|
await prisma.$disconnect();
|
||
|
|
})
|
||
|
|
.catch(async (e) => {
|
||
|
|
console.error(e);
|
||
|
|
await prisma.$disconnect();
|
||
|
|
process.exit(1);
|
||
|
|
});
|