Merge pull request #253 from bipproduction/bagas/28-jan-25

Bagas/28 jan 25
This commit is contained in:
Bagasbanuna02
2025-01-28 11:52:18 +08:00
committed by GitHub
56 changed files with 1366 additions and 199 deletions

View File

@@ -963,17 +963,18 @@ model MasterKategoriApp {
// ======================= EVENT ======================= //
model EventSponsor {
id String @id @default(cuid())
isActive Boolean @default(true)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
name String
fileName String
fileExt String?
fileId String
id String @id @default(cuid())
isActive Boolean @default(true)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
name String
isTransfer Boolean? @default(false)
fileName String
fileExt String?
fileId String
Author User? @relation(fields: [auhtorId], references: [id])
auhtorId String?
Author User? @relation(fields: [authorId], references: [id])
authorId String?
Event Event? @relation(fields: [eventId], references: [id])
eventId String?

View File

@@ -2,15 +2,15 @@ import prisma from "./../src/app/lib/prisma";
import { generate_seeder } from "./../src/app_modules/_global/fun/generate_seeder";
(async () => {
console.log("start");
console.log("start seeder >>");
await generate_seeder();
})()
.then(() => {
console.log("success");
console.log("<< success seeder");
process.exit(0);
})
.catch((e) => {
console.error(e);
console.error("<< error seeder", e);
process.exit(1);
})
.finally(async () => {