- Total Exams per Module; - Average Score per Module; - Total Exercises per Type; - Average Score per Exercise Type;
27 lines
447 B
TypeScript
27 lines
447 B
TypeScript
import {Module} from ".";
|
|
import {UserSolution} from "./exam";
|
|
|
|
export interface User {
|
|
email: string;
|
|
name: string;
|
|
profilePicture: string;
|
|
id: string;
|
|
experience: number;
|
|
type: Type;
|
|
}
|
|
|
|
export interface Stat {
|
|
user: string;
|
|
exam: string;
|
|
exercise: string;
|
|
module: Module;
|
|
solutions: any[];
|
|
type: string;
|
|
score: {
|
|
correct: number;
|
|
total: number;
|
|
};
|
|
}
|
|
|
|
export type Type = "student" | "teacher" | "admin" | "owner" | "developer";
|