import { Prisma } from '@prisma/client'; export const membershipWithAccount = Prisma.validator()({ include: { account: true }, }) export type MembershipWithAccount = Prisma.MembershipGetPayload export const membershipWithUser = Prisma.validator()({ include: { user: true }, }) export type MembershipWithUser = Prisma.MembershipGetPayload export const fullDBUser = Prisma.validator()({ include: { memberships: {include: { account: true }}} }); export type FullDBUser = Prisma.UserGetPayload //TODO - I wonder if this could be replaced by just user level info export const accountWithMembers = Prisma.validator()({ include: { members: {include: { user: true }} } }) export type AccountWithMembers = Prisma.AccountGetPayload //TODO - I wonder if this could just be a list of full memberships