- Add OfficeContact Prisma model with receptionist name, dentist name, phone, email, fax fields - Create GET/PUT /api/office-contact backend route and storage - Add OfficeContactCard frontend component under Settings > Advanced - Reorder Advanced sidebar: Office Hours → Office Contact → Twilio Settings → Google AI Settings Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
import * as z from 'zod';
|
|
export const OfficeContactGroupByResultSchema = z.array(z.object({
|
|
id: z.number().int(),
|
|
userId: z.number().int(),
|
|
receptionistName: z.string(),
|
|
dentistName: z.string(),
|
|
phoneNumber: z.string(),
|
|
email: z.string(),
|
|
fax: z.string(),
|
|
_count: z.object({
|
|
id: z.number(),
|
|
userId: z.number(),
|
|
receptionistName: z.number(),
|
|
dentistName: z.number(),
|
|
phoneNumber: z.number(),
|
|
email: z.number(),
|
|
fax: z.number(),
|
|
user: z.number()
|
|
}).optional(),
|
|
_sum: z.object({
|
|
id: z.number().nullable(),
|
|
userId: z.number().nullable()
|
|
}).nullable().optional(),
|
|
_avg: z.object({
|
|
id: z.number().nullable(),
|
|
userId: z.number().nullable()
|
|
}).nullable().optional(),
|
|
_min: z.object({
|
|
id: z.number().int().nullable(),
|
|
userId: z.number().int().nullable(),
|
|
receptionistName: z.string().nullable(),
|
|
dentistName: z.string().nullable(),
|
|
phoneNumber: z.string().nullable(),
|
|
email: z.string().nullable(),
|
|
fax: z.string().nullable()
|
|
}).nullable().optional(),
|
|
_max: z.object({
|
|
id: z.number().int().nullable(),
|
|
userId: z.number().int().nullable(),
|
|
receptionistName: z.string().nullable(),
|
|
dentistName: z.string().nullable(),
|
|
phoneNumber: z.string().nullable(),
|
|
email: z.string().nullable(),
|
|
fax: z.string().nullable()
|
|
}).nullable().optional()
|
|
})); |