fix: remove all unessecary seeding

This commit is contained in:
2026-06-27 21:00:00 +07:00
parent 9de535f541
commit dcfa4350d6
4 changed files with 2 additions and 113 deletions

View File

@ -1,15 +1,11 @@
import { prisma } from "../../src/utils/databases/prisma/connection";
import { systemPreferenceSeed } from "./systemPreference.seed";
import { userRoleSeed } from "./userRole.seed";
import { userSystemSeed } from "./userSystem.seed";
async function main() {
console.log("🌱 Running all seeds...");
console.log("🔌 Connecting to database...");
const userSystemSeedResult = await userSystemSeed();
await userRoleSeed(userSystemSeedResult.id);
await systemPreferenceSeed();
await userSystemSeed();
console.log("🌳 All seeds completed");
}