Skip to content

Commit

Permalink
Added database schema
Browse files Browse the repository at this point in the history
  • Loading branch information
marianosegura authored Jul 14, 2022
1 parent 6689d4e commit c069a0b
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,70 @@
# MEP_Digital_web
Website to manage elementary school courses

MongoDB collections schemas:

Admin {
 email: string,
 password: string
}

Student {
 id: string,
 email: string,
 password: string,
 name: string,
 lastname: string,
 grade: number
}

Teacher {
 id: string,
 email: string,
 password: string,
 name: string,
 lastname: string,
 ratings: [
 {
  student: ObjectId
  rating: number
 }
 ]
}

Course {
 id: string,
 name: string,
 grade: number,
 teacher: ObjectId,
 students: [ObjectId],
 news: [
 {
  title: string,
  message: string,
  date: string,
 }
 ],
 schedule: [
 {
  day: number,
  startHour: number,
  startMinutes: number,
  endHour: number,
  endMinutes: number,
 }
 ],
 assignments: [
 {
  title: string,
  description: string,
  submitDate: string,
 }
 ],
 chat: [
 {
  user: ObjectId,
  message: string,
  userType: string,
 }
 ]
}

0 comments on commit c069a0b

Please sign in to comment.