models/Profile

Profile model module.
Source:

Requires

  • module:mongoose

Type Definitions

Education

Properties:
Name Type Description
school string School name.
degree string Degree earned.
fieldofstudy string Field of study.
from Date Education start date.
to Date Education end date (optional if current is true).
current boolean Indicates if the education is ongoing (default: false).
description string Description of the education experience.
Source:
Type:
  • Object

Experience

Properties:
Name Type Description
title string Job title.
company string Company name.
location string Job location.
from Date Job start date.
to Date Job end date (optional if current is true).
current boolean Indicates if the job is currently held (default: false).
description string Job description.
Source:
Type:
  • Object

ProfileSchema

Profile Schema for MongoDB.
Properties:
Name Type Description
user mongoose.Schema.Types.ObjectId Reference to the associated user.
company string Company associated with the user.
website string User's website URL.
location string User's location.
status string User's professional status.
skills Array.<string> Array of the user's skills.
bio string User's biography.
githubusername string User's GitHub username.
experience Array.<Experience> Array of user's work experiences.
education Array.<Education> Array of user's education experiences.
social Social User's social media profile URLs.
date Date Date when the profile was created (default: Date.now).
Source:
Type:
  • Object

Social

Properties:
Name Type Description
youtube string YouTube profile URL.
twitter string Twitter profile URL.
facebook string Facebook profile URL.
linkedin string LinkedIn profile URL.
instagram string Instagram profile URL.
Source:
Type:
  • Object