mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-13 06:21:21 -05:00
18 lines
377 B
TypeScript
18 lines
377 B
TypeScript
import { Prisma } from "@prisma/client";
|
|
import prisma from "prisma/client";
|
|
|
|
export type GetAllUsersLeanData = Prisma.PromiseReturnType<
|
|
typeof getAllUsersLean
|
|
>;
|
|
|
|
export const getAllUsersLean = async () =>
|
|
prisma.user.findMany({
|
|
select: {
|
|
id: true,
|
|
username: true,
|
|
discriminator: true,
|
|
discordAvatar: true,
|
|
discordId: true,
|
|
},
|
|
});
|