flwo / apps /server /src /modules /versions /versions.schema.js
moustafa7's picture
feat: server plans system + fix template versions/assets pages
f65dd0c
Raw History Blame Contribute Delete
293 Bytes
import { z } from 'zod'
export const createVersionSchema = z.object({
version: z.string().min(1).max(20),
changelog: z.string().optional().default(''),
fileUrl: z.string().url().optional(),
fileSize: z.number().int().positive().default(0),
isCurrent: z.boolean().default(false),
})