feat: add Copayment and Adjustment columns to payments table
- Added copayment and adjustment fields (Decimal, default 0) to Payment model in schema and directly to DB via ALTER TABLE - Added PATCH /api/payments/:id/copayment and /adjustment routes - Added inline-editable Copayment and Adjustment columns after MH Paid with same click-to-edit format; Copayment in blue, Adjustment in orange Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
c5af6c1fa6
commit
4bd501250d
@@ -19,7 +19,8 @@ import { CommunicationUncheckedUpdateManyWithoutUserNestedInputObjectSchema as C
|
||||
import { TwilioSettingsUncheckedUpdateOneWithoutUserNestedInputObjectSchema as TwilioSettingsUncheckedUpdateOneWithoutUserNestedInputObjectSchema } from './TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput.schema';
|
||||
import { AiSettingsUncheckedUpdateOneWithoutUserNestedInputObjectSchema as AiSettingsUncheckedUpdateOneWithoutUserNestedInputObjectSchema } from './AiSettingsUncheckedUpdateOneWithoutUserNestedInput.schema';
|
||||
import { OfficeHoursUncheckedUpdateOneWithoutUserNestedInputObjectSchema as OfficeHoursUncheckedUpdateOneWithoutUserNestedInputObjectSchema } from './OfficeHoursUncheckedUpdateOneWithoutUserNestedInput.schema';
|
||||
import { OfficeContactUncheckedUpdateOneWithoutUserNestedInputObjectSchema as OfficeContactUncheckedUpdateOneWithoutUserNestedInputObjectSchema } from './OfficeContactUncheckedUpdateOneWithoutUserNestedInput.schema'
|
||||
import { OfficeContactUncheckedUpdateOneWithoutUserNestedInputObjectSchema as OfficeContactUncheckedUpdateOneWithoutUserNestedInputObjectSchema } from './OfficeContactUncheckedUpdateOneWithoutUserNestedInput.schema';
|
||||
import { ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInputObjectSchema as ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInputObjectSchema } from './ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
@@ -43,7 +44,8 @@ const makeSchema = () => z.object({
|
||||
twilioSettings: z.lazy(() => TwilioSettingsUncheckedUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
aiSettings: z.lazy(() => AiSettingsUncheckedUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
officeHours: z.lazy(() => OfficeHoursUncheckedUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
officeContact: z.lazy(() => OfficeContactUncheckedUpdateOneWithoutUserNestedInputObjectSchema).optional()
|
||||
officeContact: z.lazy(() => OfficeContactUncheckedUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
procedureTimeslot: z.lazy(() => ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const UserUncheckedUpdateInputObjectSchema: z.ZodType<Prisma.UserUncheckedUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUncheckedUpdateInput>;
|
||||
export const UserUncheckedUpdateInputObjectZodSchema = makeSchema();
|
||||
|
||||
Reference in New Issue
Block a user