Resume Models
The resume models are a groups of Mongoose models that define the structures of the resume sections in the database. The resume models are used to interact with the resume data in the database.
The resume models are defined in the src/app/_db/models/resumeSections.js
file. This file contains the following models:
Section 1
export const section1Model = mongoose.Schema({
year: String,
grade: Number,
clubName: String,
numInClub: Number,
clubLeader: String,
meetingsHeld: Number,
meetingsAttended: Number,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section1 = mongoose.models.section1 || mongoose.model("section1", section1Model);
Section 2
export const section2Model = mongoose.Schema({
year: String,
projectName: String,
projectScope: String,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section2 = mongoose.models.section2 || mongoose.model("section2", section2Model);
Section 3
export const section3Model = mongoose.Schema({
year: String,
activityKind: String,
thingsLearned: String,
level: String,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section3 = mongoose.models.section3 || mongoose.model("section3", section3Model);
Section 4
export const section4Model = mongoose.Schema({
year: String,
activityKind: String,
scope: String,
level: String,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section4 = mongoose.models.section4 || mongoose.model("section4", section4Model);
Section 5
export const section5Model = mongoose.Schema({
year: String,
leadershipRole: String,
hoursSpent: Number,
numPeopleReached: Number,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section5 = mongoose.models.section5 || mongoose.model("section5", section5Model);
Section 6
export const section6Model = mongoose.Schema({
year: String,
organizationName: String,
leadershipRole: String,
hoursSpent: Number,
numPeopleReached: Number,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section6 = mongoose.models.section6 || mongoose.model("section6", section6Model);
Section 7
export const section7Model = mongoose.Schema({
year: String,
clubMemberActivities: String,
hoursSpent: Number,
numPeopleReached: Number,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section7 = mongoose.models.section7 || mongoose.model("section7", section7Model);
Section 8
export const section8Model = mongoose.Schema({
year: String,
individualGroupActivities: String,
hoursSpent: Number,
numPeopleReached: Number,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section8 = mongoose.models.section8 || mongoose.model("section8", section8Model);
Section 9
export const section9Model = mongoose.Schema({
year: String,
communicationType: String,
topic: String,
timesGiven: Number,
location: String,
audienceSize: Number,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section9 = mongoose.models.section9 || mongoose.model("section9", section9Model);
Section 10
export const section10Model = mongoose.Schema({
year: String,
communicationType: String,
topic: String,
timesGiven: Number,
location: String,
audienceSize: Number,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section10 = mongoose.models.section10 || mongoose.model("section10", section10Model);
Section 11
export const section11Model = mongoose.Schema({
year: String,
eventAndLevel: String,
exhibitsOrDivision: String,
ribbonOrPlacings: String,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section11 = mongoose.models.section11 || mongoose.model("section11", section11Model);
Section 12
export const section12Model = mongoose.Schema({
year: String,
contestOrEvent: String,
recognitionReceived: String,
level: String,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section12 = mongoose.models.section12 || mongoose.model("section12", section12Model);
Section 13
export const section13Model = mongoose.Schema({
year: String,
recognitionType: String,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section13 = mongoose.models.section13 || mongoose.model("section13", section13Model);
Section 14
export const section14Model = mongoose.Schema({
year: String,
recognitionType: String,
uid: {
type: mongoose.Schema.Types.ObjectId,
ref: "users"
}
});
export const Section14 = mongoose.models.section14 || mongoose.model("section14", section14Model);