Files
encoach_ui_odoo19/src/interfaces/user.ts
2023-04-24 09:12:11 +01:00

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