feat: share patients across all users
Removed per-user patient filtering so all staff accounts see the same patient pool. Previously each user only saw patients they created. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+8
-2
@@ -5,6 +5,7 @@ import { AppointmentUncheckedCreateNestedManyWithoutUserInputObjectSchema as App
|
||||
import { StaffUncheckedCreateNestedManyWithoutUserInputObjectSchema as StaffUncheckedCreateNestedManyWithoutUserInputObjectSchema } from './StaffUncheckedCreateNestedManyWithoutUserInput.schema';
|
||||
import { NpiProviderUncheckedCreateNestedManyWithoutUserInputObjectSchema as NpiProviderUncheckedCreateNestedManyWithoutUserInputObjectSchema } from './NpiProviderUncheckedCreateNestedManyWithoutUserInput.schema';
|
||||
import { ClaimUncheckedCreateNestedManyWithoutUserInputObjectSchema as ClaimUncheckedCreateNestedManyWithoutUserInputObjectSchema } from './ClaimUncheckedCreateNestedManyWithoutUserInput.schema';
|
||||
import { ShoppingVendorUncheckedCreateNestedManyWithoutUserInputObjectSchema as ShoppingVendorUncheckedCreateNestedManyWithoutUserInputObjectSchema } from './ShoppingVendorUncheckedCreateNestedManyWithoutUserInput.schema';
|
||||
import { PaymentUncheckedCreateNestedManyWithoutUpdatedByInputObjectSchema as PaymentUncheckedCreateNestedManyWithoutUpdatedByInputObjectSchema } from './PaymentUncheckedCreateNestedManyWithoutUpdatedByInput.schema';
|
||||
import { DatabaseBackupUncheckedCreateNestedManyWithoutUserInputObjectSchema as DatabaseBackupUncheckedCreateNestedManyWithoutUserInputObjectSchema } from './DatabaseBackupUncheckedCreateNestedManyWithoutUserInput.schema';
|
||||
import { BackupDestinationUncheckedCreateNestedManyWithoutUserInputObjectSchema as BackupDestinationUncheckedCreateNestedManyWithoutUserInputObjectSchema } from './BackupDestinationUncheckedCreateNestedManyWithoutUserInput.schema';
|
||||
@@ -16,7 +17,9 @@ import { TwilioSettingsUncheckedCreateNestedOneWithoutUserInputObjectSchema as T
|
||||
import { AiSettingsUncheckedCreateNestedOneWithoutUserInputObjectSchema as AiSettingsUncheckedCreateNestedOneWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateNestedOneWithoutUserInput.schema';
|
||||
import { OfficeHoursUncheckedCreateNestedOneWithoutUserInputObjectSchema as OfficeHoursUncheckedCreateNestedOneWithoutUserInputObjectSchema } from './OfficeHoursUncheckedCreateNestedOneWithoutUserInput.schema';
|
||||
import { OfficeContactUncheckedCreateNestedOneWithoutUserInputObjectSchema as OfficeContactUncheckedCreateNestedOneWithoutUserInputObjectSchema } from './OfficeContactUncheckedCreateNestedOneWithoutUserInput.schema';
|
||||
import { ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInputObjectSchema as ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInputObjectSchema } from './ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput.schema'
|
||||
import { ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInputObjectSchema as ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInputObjectSchema } from './ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput.schema';
|
||||
import { InsuranceContactUncheckedCreateNestedManyWithoutUserInputObjectSchema as InsuranceContactUncheckedCreateNestedManyWithoutUserInputObjectSchema } from './InsuranceContactUncheckedCreateNestedManyWithoutUserInput.schema';
|
||||
import { PatientConversationUncheckedCreateNestedManyWithoutUserInputObjectSchema as PatientConversationUncheckedCreateNestedManyWithoutUserInputObjectSchema } from './PatientConversationUncheckedCreateNestedManyWithoutUserInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
@@ -29,6 +32,7 @@ const makeSchema = () => z.object({
|
||||
staff: z.lazy(() => StaffUncheckedCreateNestedManyWithoutUserInputObjectSchema).optional(),
|
||||
npiProviders: z.lazy(() => NpiProviderUncheckedCreateNestedManyWithoutUserInputObjectSchema).optional(),
|
||||
claims: z.lazy(() => ClaimUncheckedCreateNestedManyWithoutUserInputObjectSchema).optional(),
|
||||
shoppingVendors: z.lazy(() => ShoppingVendorUncheckedCreateNestedManyWithoutUserInputObjectSchema).optional(),
|
||||
updatedPayments: z.lazy(() => PaymentUncheckedCreateNestedManyWithoutUpdatedByInputObjectSchema).optional(),
|
||||
backups: z.lazy(() => DatabaseBackupUncheckedCreateNestedManyWithoutUserInputObjectSchema).optional(),
|
||||
backupDestinations: z.lazy(() => BackupDestinationUncheckedCreateNestedManyWithoutUserInputObjectSchema).optional(),
|
||||
@@ -40,7 +44,9 @@ const makeSchema = () => z.object({
|
||||
aiSettings: z.lazy(() => AiSettingsUncheckedCreateNestedOneWithoutUserInputObjectSchema).optional(),
|
||||
officeHours: z.lazy(() => OfficeHoursUncheckedCreateNestedOneWithoutUserInputObjectSchema).optional(),
|
||||
officeContact: z.lazy(() => OfficeContactUncheckedCreateNestedOneWithoutUserInputObjectSchema).optional(),
|
||||
procedureTimeslot: z.lazy(() => ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInputObjectSchema).optional()
|
||||
procedureTimeslot: z.lazy(() => ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInputObjectSchema).optional(),
|
||||
insuranceContacts: z.lazy(() => InsuranceContactUncheckedCreateNestedManyWithoutUserInputObjectSchema).optional(),
|
||||
patientConversations: z.lazy(() => PatientConversationUncheckedCreateNestedManyWithoutUserInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const UserUncheckedCreateWithoutInsuranceCredentialsInputObjectSchema: z.ZodType<Prisma.UserUncheckedCreateWithoutInsuranceCredentialsInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUncheckedCreateWithoutInsuranceCredentialsInput>;
|
||||
export const UserUncheckedCreateWithoutInsuranceCredentialsInputObjectZodSchema = makeSchema();
|
||||
|
||||
Reference in New Issue
Block a user