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: stringemail: string-
password: string(hashed) globalRole: stringteams: TeamReference[]
name: stringowner: UserReferencemembers: MemberReference[]parentTeam: TeamReference | nullsubTeams: TeamReference[]settings: TeamSettings
name: stringpermissions: string[]teamId: ObjectId
title: stringdescription: stringassignedTo: UserReferencepoints: numberbonusPoints: numberstatus: stringdeadline: Date
teamId: ObjectIdmessages: Message[]locked: boolean
teamId: ObjectIdtitle: stringcontent: stringauthor: UserReferencetimestamp: Date
teamId: ObjectIdpointType: stringscores: { userId: ObjectId, points: number }[]