Files
EpicNext-Cms/src/types/prisma.ts
T

17 lines
574 B
TypeScript

import type { Ban, User, UsersCurrency } from "@/generated/prisma/client";
export type UserWithCurrencies = User & { currencies: UsersCurrency[] };
export type UserWithPermission = User & { permission: { rankName: string } };
export type UserPublicPreview = Pick<User, "id" | "username" | "look" | "motto">;
export interface NotificationRow {
id: number;
userId: number;
type: string;
title: string;
message: string;
link: string | null;
readAt: string | null;
createdAt: string;
}
export type BanWithStaff = Ban & { staff: Pick<User, "id" | "username"> };