add suggestion backend

This commit is contained in:
Kalle
2021-02-23 22:20:22 +02:00
parent 32115798e2
commit e787a94de6
5 changed files with 80 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ export const SUGGESTION_DESCRIPTION_LIMIT = 500;
export const suggestionSchema = z.object({
description: z.string().max(SUGGESTION_DESCRIPTION_LIMIT),
suggestedUserId: z.number().int(),
suggestedId: z.number().int(),
tier: z.number().int().min(1).max(3),
region: z.enum(["NA", "EU"]),
});