init commit

This commit is contained in:
2025-07-07 00:52:41 +05:30
commit 2dd24927bc
81 changed files with 10274 additions and 0 deletions

86
backend/models/Resume.js Normal file
View File

@ -0,0 +1,86 @@
const mongoose = require("mongoose");
const ResumeSchema = new mongoose.Schema(
{
userId: {
type: mongoose.Schema.Types.ObjectId,
ref: "User",
required: true,
},
title: {
type: String,
required: true,
},
thumbnailLink: {
type: String,
},
template:{
theme: String,
colorPalette: [String]
},
profileInfo: {
profilePreviewUrl: String,
fullName: String,
designation: String,
summary: String,
},
contactInfo: {
email: String,
phone: String,
location: String,
linkedin: String,
github: String,
website: String,
},
workExperience: [
{
company: String,
role: String,
startDate: String,
endDate: String,
description: String,
},
],
education: [
{
degree: String,
institution: String,
startDate: String,
endDate: String,
},
],
skills: [
{
name: String,
progress: Number,
},
],
projects: [
{
title: String,
description: String,
github: String,
liveDemo: String,
},
],
certifications: [
{
title: String,
issuer: String,
year: String,
},
],
languages: [
{
name: String,
progress: Number,
},
],
interests: [String],
},
{
timestamps: { createdAt: "createdAt", updatedAt: "updatedAt" },
}
);
module.exports = mongoose.model("Resume", ResumeSchema);