import { InterfaceRef, type SchemaTypes } from '@pothos/core'; import { type PrismaObjectRef, prismaModelKey } from './object-ref'; import type { PrismaModelTypes } from './types'; export type PrismaRef = | PrismaInterfaceRef | PrismaObjectRef; export class PrismaInterfaceRef< Types extends SchemaTypes, Model extends PrismaModelTypes, T = {}, > extends InterfaceRef { [prismaModelKey]!: Model; modelName: string; constructor(name: string, modelName: string) { super(name); this.modelName = modelName; } }