Type Alias PrismaKeyedModelCreate<PrismaClient, Model>

PrismaKeyedModelCreate: {
    [EntryName in string]: PrismaModelCreate<PrismaClient, Model>
}

A type for creating multiple Prisma create mocks that are named for future reference.

Type Parameters

import {PrismaKeyedModelCreate} from '@augment-vir/common';
import type {PrismaClient} from '@prisma/client';

const mockUsers = {
mockUser1: {
first_name: 'one',
id: 123,
// etc.
},
mockUser2: {
first_name: 'two',
id: 124,
auth_role: 'user',
// etc.
},
} as const satisfies PrismaKeyedModelCreate<PrismaClient, 'User'>;