- Add AI Dental Shopping to sidebar with Search/Tag and Login Info sub-pages - Build full-stack Login Info CRUD: save vendor name, website, username, password per user - Add ShoppingVendor Prisma model, run db push, regenerate client and Zod schemas - Add storage layer, REST API at /api/shopping-vendors/, and frontend table with add/edit/delete modal Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 lines
1.3 KiB
TypeScript
10 lines
1.3 KiB
TypeScript
import type { Prisma } from '../../generated/prisma';
|
|
import * as z from 'zod';
|
|
import { ShoppingVendorSelectObjectSchema as ShoppingVendorSelectObjectSchema } from './objects/ShoppingVendorSelect.schema';
|
|
import { ShoppingVendorIncludeObjectSchema as ShoppingVendorIncludeObjectSchema } from './objects/ShoppingVendorInclude.schema';
|
|
import { ShoppingVendorCreateInputObjectSchema as ShoppingVendorCreateInputObjectSchema } from './objects/ShoppingVendorCreateInput.schema';
|
|
import { ShoppingVendorUncheckedCreateInputObjectSchema as ShoppingVendorUncheckedCreateInputObjectSchema } from './objects/ShoppingVendorUncheckedCreateInput.schema';
|
|
|
|
export const ShoppingVendorCreateOneSchema: z.ZodType<Prisma.ShoppingVendorCreateArgs> = z.object({ select: ShoppingVendorSelectObjectSchema.optional(), include: ShoppingVendorIncludeObjectSchema.optional(), data: z.union([ShoppingVendorCreateInputObjectSchema, ShoppingVendorUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.ShoppingVendorCreateArgs>;
|
|
|
|
export const ShoppingVendorCreateOneZodSchema = z.object({ select: ShoppingVendorSelectObjectSchema.optional(), include: ShoppingVendorIncludeObjectSchema.optional(), data: z.union([ShoppingVendorCreateInputObjectSchema, ShoppingVendorUncheckedCreateInputObjectSchema]) }).strict(); |