Skip to content

Commit

Permalink
Updated database schemas style
Browse files Browse the repository at this point in the history
  • Loading branch information
marianosegura authored Jul 14, 2022
1 parent c069a0b commit 33296f7
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# MEP_Digital_web
Website to manage elementary school courses

MongoDB collections schemas:

Admin {
## MongoDB Collections Schemas
### Admin
{
 email: string,
 password: string
}

Student {
### Student
{
 id: string,
 email: string,
 password: string,
Expand All @@ -17,34 +18,36 @@ Student {
 grade: number
}

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

Course {
### Course
{
 id: string,
 name: string,
 grade: number,
 teacher: ObjectId,
 students: [ObjectId],
 news: [
 **news**: [
 {
  title: string,
  message: string,
  date: string,
 }
 ],
 schedule: [
 **schedule**: [
 {
  day: number,
  startHour: number,
Expand All @@ -53,14 +56,14 @@ Course {
  endMinutes: number,
 }
 ],
 assignments: [
 **assignments**: [
 {
  title: string,
  description: string,
  submitDate: string,
 }
 ],
 chat: [
 **chat**: [
 {
  user: ObjectId,
  message: string,
Expand Down

0 comments on commit 33296f7

Please sign in to comment.