© 2026 Hedgehog Software, LLC
model Entry { project String @db.Uuid description String comment String? status String projects Projects @relation(fields: [project], references: [uuid], onDelete: NoAction, onUpdate: NoAction, map: "entry_projects_uuid_fk") @@map("entry") } model Projects { uuid String @id(map: "projects_pk") @default(dbgenerated("gen_random_uuid()")) @db.Uuid name String entry Entry[] @@map("projects") }
const entries: Entry[] = await prisma.entry.findMany({ include: { projects: true, }, });
[ { project: '5d117ed0-1391-4925-bde0-22412825cd54', description: 'xxxx', comment: 'xxx', status: 'xxx', projects: { uuid: '5d117ed0-1391-4925-bde0-22412825cd54', name: 'xxx' } } ]
const entries: Entry[] = await prisma.entry.findMany({ ... })