28 lines
516 B
TypeScript
28 lines
516 B
TypeScript
import {Module} from ".";
|
|
|
|
export interface User {
|
|
email: string;
|
|
name: string;
|
|
profilePicture: string;
|
|
id: string;
|
|
experience: number;
|
|
type: Type;
|
|
}
|
|
|
|
export interface Stat {
|
|
user: string;
|
|
exam: string;
|
|
exercise: string;
|
|
session: string;
|
|
module: Module;
|
|
solutions: any[];
|
|
type: string;
|
|
score: {
|
|
correct: number;
|
|
total: number;
|
|
};
|
|
}
|
|
|
|
export type Type = "student" | "teacher" | "admin" | "owner" | "developer";
|
|
export const userTypes: Type[] = ["student", "teacher", "admin", "owner", "developer"];
|