Variable quizRunSchemaConst
quizRunSchema: ZodObject<
{
answers: ZodArray<
ZodUnion<
[ZodString, ZodArray<ZodOptional<ZodNullable<ZodBoolean>>, "many">],
>,
"many",
>;
archived: ZodOptional<
ZodEffects<
ZodObject<
{ type: ZodEnum<["Timestamp"]>; value: ZodNumber },
"strip",
ZodTypeAny,
{ type: "Timestamp"; value: number },
{ type: "Timestamp"; value: number },
>,
Timestamp,
{ type: "Timestamp"; value: number },
>,
>;
correct: ZodArray<ZodBoolean, "many">;
counter: ZodNumber;
created: ZodEffects<
ZodObject<
{ type: ZodEnum<["Timestamp"]>; value: ZodNumber },
"strip",
ZodTypeAny,
{ type: "Timestamp"; value: number },
{ type: "Timestamp"; value: number },
>,
Timestamp,
{ type: "Timestamp"; value: number },
>;
questions: ZodArray<ZodBranded<ZodString, "UID">, "many">;
quizId: ZodBranded<ZodString, "UID">;
studentId: ZodBranded<ZodString, "UID">;
uid: ZodBranded<ZodString, "UID">;
updated: ZodEffects<
ZodObject<
{ type: ZodEnum<["Timestamp"]>; value: ZodNumber },
"strip",
ZodTypeAny,
{ type: "Timestamp"; value: number },
{ type: "Timestamp"; value: number },
>,
Timestamp,
{ type: "Timestamp"; value: number },
>;
wrong: ZodArray<ZodBoolean, "many">;
},
"strip",
ZodTypeAny,
{
answers: (string | (boolean | null | undefined)[])[];
archived?: Timestamp;
correct: boolean[];
counter: number;
created: Timestamp;
questions: (string & BRAND<"UID">)[];
quizId: string & BRAND<"UID">;
studentId: string & BRAND<"UID">;
uid: string & BRAND<"UID">;
updated: Timestamp;
wrong: boolean[];
},
{
answers: (string | (boolean | null | undefined)[])[];
archived?: { type: "Timestamp"; value: number };
correct: boolean[];
counter: number;
created: { type: "Timestamp"; value: number };
questions: string[];
quizId: string;
studentId: string;
uid: string;
updated: { type: "Timestamp"; value: number };
wrong: boolean[];
},
> = ...
A RUN is a quiz run for a single student. It holds the individual student's question order and his answers