Skip to content

Commit

Permalink
edit olympiks event schema to better match data
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyleal committed Aug 21, 2024
1 parent 997b0fe commit f4c3a68
Showing 1 changed file with 70 additions and 6 deletions.
76 changes: 70 additions & 6 deletions server/src/models/OlympiksEventModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,87 @@ const mongoose = require('mongoose');

const OlympiksEventSchema = new mongoose.Schema(
{
time: {
activityName: {
type: String,
required: true,
},
name: {
type: String,
startTime: {
type: Date,
required: true,
},
description: {
type: String,
endTime: {
type: Date,
required: true,
},
location: {
type: String,
required: true,
},
maxSignups: {
activityDescription: {
type: String,
required: true,
},
maxMSE: {
type: Number,
required: true,
},
currentMSE: {
type: Number,
required: true,
},
maxMech: {
type: Number,
required: true,
},
currentMech: {
type: Number,
required: true,
},
maxCivMin: {
type: Number,
required: true,
},
currentCivMin: {
type: Number,
required: true,
},
currentIndy: {
type: Number,
required: true,
},
maxIndy: {
type: Number,
required: true,
},
maxTrackOne: {
type: Number,
required: true,
},
currentTrackOne: {
type: Number,
required: true,
},
maxECE: {
type: Number,
required: true,
},
currentECE: {
type: Number,
required: true,
},
maxEngSci: {
type: Number,
required: true,
},
currentEngSci: {
type: Number,
required: true,
},
maxChem: {
type: Number,
required: true,
},
currentChem: {
type: Number,
required: true,
},
Expand Down

0 comments on commit f4c3a68

Please sign in to comment.