Files
encoach_frontend/src/interfaces/user.ts
Tiago Ribeiro e60130069d Created more types of stats to be showcased:
- Total Exams per Module;
- Average Score per Module;
- Total Exercises per Type;
- Average Score per Exercise Type;
2023-04-20 10:38:55 +01:00

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";