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,6 +8,7 @@ import { StaffUpdateManyWithoutUserNestedInputObjectSchema as StaffUpdateManyWit
|
||||
import { NpiProviderUpdateManyWithoutUserNestedInputObjectSchema as NpiProviderUpdateManyWithoutUserNestedInputObjectSchema } from './NpiProviderUpdateManyWithoutUserNestedInput.schema';
|
||||
import { ClaimUpdateManyWithoutUserNestedInputObjectSchema as ClaimUpdateManyWithoutUserNestedInputObjectSchema } from './ClaimUpdateManyWithoutUserNestedInput.schema';
|
||||
import { InsuranceCredentialUpdateManyWithoutUserNestedInputObjectSchema as InsuranceCredentialUpdateManyWithoutUserNestedInputObjectSchema } from './InsuranceCredentialUpdateManyWithoutUserNestedInput.schema';
|
||||
import { ShoppingVendorUpdateManyWithoutUserNestedInputObjectSchema as ShoppingVendorUpdateManyWithoutUserNestedInputObjectSchema } from './ShoppingVendorUpdateManyWithoutUserNestedInput.schema';
|
||||
import { PaymentUpdateManyWithoutUpdatedByNestedInputObjectSchema as PaymentUpdateManyWithoutUpdatedByNestedInputObjectSchema } from './PaymentUpdateManyWithoutUpdatedByNestedInput.schema';
|
||||
import { DatabaseBackupUpdateManyWithoutUserNestedInputObjectSchema as DatabaseBackupUpdateManyWithoutUserNestedInputObjectSchema } from './DatabaseBackupUpdateManyWithoutUserNestedInput.schema';
|
||||
import { BackupDestinationUpdateManyWithoutUserNestedInputObjectSchema as BackupDestinationUpdateManyWithoutUserNestedInputObjectSchema } from './BackupDestinationUpdateManyWithoutUserNestedInput.schema';
|
||||
@@ -18,7 +19,9 @@ import { TwilioSettingsUpdateOneWithoutUserNestedInputObjectSchema as TwilioSett
|
||||
import { AiSettingsUpdateOneWithoutUserNestedInputObjectSchema as AiSettingsUpdateOneWithoutUserNestedInputObjectSchema } from './AiSettingsUpdateOneWithoutUserNestedInput.schema';
|
||||
import { OfficeHoursUpdateOneWithoutUserNestedInputObjectSchema as OfficeHoursUpdateOneWithoutUserNestedInputObjectSchema } from './OfficeHoursUpdateOneWithoutUserNestedInput.schema';
|
||||
import { OfficeContactUpdateOneWithoutUserNestedInputObjectSchema as OfficeContactUpdateOneWithoutUserNestedInputObjectSchema } from './OfficeContactUpdateOneWithoutUserNestedInput.schema';
|
||||
import { ProcedureTimeslotUpdateOneWithoutUserNestedInputObjectSchema as ProcedureTimeslotUpdateOneWithoutUserNestedInputObjectSchema } from './ProcedureTimeslotUpdateOneWithoutUserNestedInput.schema'
|
||||
import { ProcedureTimeslotUpdateOneWithoutUserNestedInputObjectSchema as ProcedureTimeslotUpdateOneWithoutUserNestedInputObjectSchema } from './ProcedureTimeslotUpdateOneWithoutUserNestedInput.schema';
|
||||
import { InsuranceContactUpdateManyWithoutUserNestedInputObjectSchema as InsuranceContactUpdateManyWithoutUserNestedInputObjectSchema } from './InsuranceContactUpdateManyWithoutUserNestedInput.schema';
|
||||
import { PatientConversationUpdateManyWithoutUserNestedInputObjectSchema as PatientConversationUpdateManyWithoutUserNestedInputObjectSchema } from './PatientConversationUpdateManyWithoutUserNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
username: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
@@ -31,6 +34,7 @@ const makeSchema = () => z.object({
|
||||
npiProviders: z.lazy(() => NpiProviderUpdateManyWithoutUserNestedInputObjectSchema).optional(),
|
||||
claims: z.lazy(() => ClaimUpdateManyWithoutUserNestedInputObjectSchema).optional(),
|
||||
insuranceCredentials: z.lazy(() => InsuranceCredentialUpdateManyWithoutUserNestedInputObjectSchema).optional(),
|
||||
shoppingVendors: z.lazy(() => ShoppingVendorUpdateManyWithoutUserNestedInputObjectSchema).optional(),
|
||||
updatedPayments: z.lazy(() => PaymentUpdateManyWithoutUpdatedByNestedInputObjectSchema).optional(),
|
||||
backups: z.lazy(() => DatabaseBackupUpdateManyWithoutUserNestedInputObjectSchema).optional(),
|
||||
backupDestinations: z.lazy(() => BackupDestinationUpdateManyWithoutUserNestedInputObjectSchema).optional(),
|
||||
@@ -41,7 +45,9 @@ const makeSchema = () => z.object({
|
||||
aiSettings: z.lazy(() => AiSettingsUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
officeHours: z.lazy(() => OfficeHoursUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
officeContact: z.lazy(() => OfficeContactUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
procedureTimeslot: z.lazy(() => ProcedureTimeslotUpdateOneWithoutUserNestedInputObjectSchema).optional()
|
||||
procedureTimeslot: z.lazy(() => ProcedureTimeslotUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
insuranceContacts: z.lazy(() => InsuranceContactUpdateManyWithoutUserNestedInputObjectSchema).optional(),
|
||||
patientConversations: z.lazy(() => PatientConversationUpdateManyWithoutUserNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const UserUpdateWithoutCloudFilesInputObjectSchema: z.ZodType<Prisma.UserUpdateWithoutCloudFilesInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUpdateWithoutCloudFilesInput>;
|
||||
export const UserUpdateWithoutCloudFilesInputObjectZodSchema = makeSchema();
|
||||
|
||||
Reference in New Issue
Block a user