MongoSchemas - IEEE-Team-3/map GitHub Wiki
This file outlines all the MongoDB schemas used in the application. Each schema will be defined with TypeScript interfaces and Mongoose models.
username: string
email: string
-
password: string
(hashed) globalRole: string
teams: TeamReference[]
name: string
owner: UserReference
members: MemberReference[]
parentTeam: TeamReference | null
subTeams: TeamReference[]
settings: TeamSettings
name: string
permissions: string[]
teamId: ObjectId
title: string
description: string
assignedTo: UserReference
points: number
bonusPoints: number
status: string
deadline: Date
teamId: ObjectId
messages: Message[]
locked: boolean
teamId: ObjectId
title: string
content: string
author: UserReference
timestamp: Date
teamId: ObjectId
pointType: string
scores: { userId: ObjectId, points: number }[]