19 lines
539 B
TypeScript
19 lines
539 B
TypeScript
import z from "zod"
|
|
|
|
export const createMusicInputSchema = z.object({
|
|
id: z.string().uuid(),
|
|
title: z.string().min(1).max(100),
|
|
description: z.string().optional(),
|
|
fileUrl: z.string(),
|
|
fileKey: z.string(),
|
|
fileName: z.string(),
|
|
})
|
|
export const updateMusicInputSchema = z.object({
|
|
id: z.string().uuid(),
|
|
title: z.string().min(1).max(100).optional(),
|
|
description: z.string().optional(),
|
|
fileUrl: z.string().optional(),
|
|
fileKey: z.string().optional(),
|
|
fileName: z.string().optional(),
|
|
})
|