Documentation ¶
Index ¶
- type AppliedCandidateResponse
- type ApplyJob
- type Candidate
- type CandidateResponse
- type CandidatepRequest
- type Candidateprofile
- type Education
- type Job
- type JobID
- type Login
- type Person
- type ProfessionalExperience
- type Project
- type Rec
- type Recruiter
- type RecruiterResponse
- type Roletype
- type TokenManager
- type Usertoken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Candidate ¶
type Candidate struct { UserID uint `gorm:"primary_key; AUTO_ Increment "` Name string `gorm:"Not null"` Email string `gorm:"unique; Not null"` Password string `gorm:"Not null"` Username string `gorm:"unique; Not null"` Contact string `gorm:"unique; Not null"` Jobs []*Job `gorm:"many2many:candidates_jobs;constraint:OnUpdate:CASCADE,OnDelete:RESTRICT;"` JobsApplied uint }
Job model with gorm mapping
type CandidateResponse ¶
type CandidatepRequest ¶
type CandidatepRequest struct { Firstname string Lastname string Email string Phone string Github string Linkedin string Facebook string Instagram string Education []Education Project []Project Professionalexperience []ProfessionalExperience Skills pq.StringArray Interests pq.StringArray }
type Candidateprofile ¶
type Candidateprofile struct { Firstname string `gorm:"Not null"` Lastname string `gorm:"Not null"` Email string `gorm:"primary_key; Not null"` Phone string `gorm:"unique; Not null"` Github string `gorm:""` Linkedin string `gorm:""` Facebook string `gorm:""` Instagram string `gorm:""` Skills pq.StringArray `gorm:"type:text[]"` Interests pq.StringArray `gorm:"type:text[]"` }
type Job ¶
type Job struct { JobID uint `gorm:"primary_key; AUTO_ Increment"` Organization string `gorm:"Not null"` Role_Name string `gorm:"Not null"` Role_Type string `gorm:"Not null"` Type string Location string Start_Date string Posted_Date string Responsibilities string `gorm:"Not null"` Salary_Start string Salary_End string Active string `gorm:"Not null"` RecruiterID uint Candidates []*Candidate `gorm:"many2many:candidates_jobs;constraint:OnUpdate:CASCADE,OnDelete:RESTRICT;"` CandidateCount uint }
type ProfessionalExperience ¶
type Recruiter ¶
type Recruiter struct { ID uint `gorm:"primary_key; AUTO_ Increment "` Name string `gorm:"Not null"` Email string `gorm:"unique; Not null"` Password string `gorm:"Not null"` Organization string Website string Contact string `gorm:" Not null"` Jobs []Job `gorm:"foreignKey:RecruiterID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:RESTRICT;"` }
Recruiter Model with gorm mapping
type RecruiterResponse ¶
Custom response model for login signup of recruiter
type TokenManager ¶
user Token manager model
Click to show internal directories.
Click to hide internal directories.