Files
cfw-autumn/shared/models/cusProductModels/cusPriceModels/cusPriceModels.ts
John Yeo 3d0e4f94f2 wip
2025-09-29 11:15:23 +01:00

19 lines
536 B
TypeScript

import { z } from "zod/v4";
import { PriceSchema } from "../../productModels/priceModels/priceModels.js";
export const CustomerPriceSchema = z.object({
id: z.string(),
internal_customer_id: z.string(),
customer_product_id: z.string(),
created_at: z.number(),
price_id: z.string().nullable(),
});
export const FullCustomerPriceSchema = CustomerPriceSchema.extend({
price: PriceSchema,
});
export type CustomerPrice = z.infer<typeof CustomerPriceSchema>;
export type FullCustomerPrice = z.infer<typeof FullCustomerPriceSchema>;