Refactored pages/api/assignments to mongodb

This commit is contained in:
Carlos Mesquita
2024-09-07 15:13:41 +01:00
parent e8b7c5ff80
commit 6f7ef1abef
14 changed files with 820 additions and 462 deletions

View File

@@ -1,3 +1,4 @@
import { ObjectId } from "mongodb";
import {Module} from ".";
import {InstructorGender, ShuffleMap} from "./exam";
import {PermissionType} from "./permissions";
@@ -6,6 +7,7 @@ export type User = StudentUser | TeacherUser | CorporateUser | AgentUser | Admin
export type UserStatus = "active" | "disabled" | "paymentDue";
export interface BasicUser {
_id: ObjectId;
email: string;
name: string;
profilePicture: string;