mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-29 05:44:46 -05:00
9 lines
181 B
TypeScript
9 lines
181 B
TypeScript
import * as z from "zod";
|
|
|
|
export const voteSchema = z.object({
|
|
score: z.number().min(-2).max(2).int(),
|
|
userId: z.number(),
|
|
});
|
|
|
|
export const votesSchema = z.array(voteSchema);
|