suggestion frontend

This commit is contained in:
Kalle
2021-02-22 13:42:47 +02:00
parent ec77a7c1b6
commit 94bda2e1b0
5 changed files with 213 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import * as z from "zod";
export const SUGGESTION_DESCRIPTION_LIMIT = 500;
export const suggestionSchema = z.object({
description: z.string().max(SUGGESTION_DESCRIPTION_LIMIT),
suggestedUserId: z.number().int(),
tier: z.number().int().min(1).max(3),
});