prettier fixes #16
This commit is contained in:
@@ -1,25 +1,39 @@
|
||||
import { Prisma } from '@prisma/client';
|
||||
|
||||
export const membershipWithAccount = Prisma.validator<Prisma.MembershipArgs>()({
|
||||
include: { account: true },
|
||||
})
|
||||
export type MembershipWithAccount = Prisma.MembershipGetPayload<typeof membershipWithAccount>
|
||||
include: { account: true }
|
||||
});
|
||||
export type MembershipWithAccount = Prisma.MembershipGetPayload<
|
||||
typeof membershipWithAccount
|
||||
>;
|
||||
|
||||
export const membershipWithUser = Prisma.validator<Prisma.MembershipArgs>()({
|
||||
include: { user: true },
|
||||
})
|
||||
export type MembershipWithUser = Prisma.MembershipGetPayload<typeof membershipWithUser>
|
||||
include: { user: true }
|
||||
});
|
||||
export type MembershipWithUser = Prisma.MembershipGetPayload<
|
||||
typeof membershipWithUser
|
||||
>;
|
||||
|
||||
export const fullDBUser = Prisma.validator<Prisma.UserArgs>()({
|
||||
include: { memberships: {include: {
|
||||
account: true
|
||||
}}}
|
||||
include: {
|
||||
memberships: {
|
||||
include: {
|
||||
account: true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
export type FullDBUser = Prisma.UserGetPayload<typeof fullDBUser> //TODO - I wonder if this could be replaced by just user level info
|
||||
export type FullDBUser = Prisma.UserGetPayload<typeof fullDBUser>; //TODO - I wonder if this could be replaced by just user level info
|
||||
|
||||
export const accountWithMembers = Prisma.validator<Prisma.AccountArgs>()({
|
||||
include: { members: {include: {
|
||||
user: true
|
||||
}} }
|
||||
})
|
||||
export type AccountWithMembers = Prisma.AccountGetPayload<typeof accountWithMembers> //TODO - I wonder if this could just be a list of full memberships
|
||||
include: {
|
||||
members: {
|
||||
include: {
|
||||
user: true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
export type AccountWithMembers = Prisma.AccountGetPayload<
|
||||
typeof accountWithMembers
|
||||
>; //TODO - I wonder if this could just be a list of full memberships
|
||||
|
||||
Reference in New Issue
Block a user