mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 23:58:36 -05:00
suggestion frontend
This commit is contained in:
9
lib/validators/suggestion.ts
Normal file
9
lib/validators/suggestion.ts
Normal 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),
|
||||
});
|
||||
Reference in New Issue
Block a user