models

package
v0.0.0-...-3a3e309 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppliedCandidateResponse

type AppliedCandidateResponse struct {
	Candidate Candidate
	JobID     uint
}

type ApplyJob

type ApplyJob struct {
	JobJobID        uint
	CandidateUserID uint
}

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 CandidateResponse struct {
	Candidate Candidate
	Token     string
}

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 Education

type Education struct {
	Email         string `gorm:""`
	College       string `gorm:""`
	Fromyear      string `gorm:""`
	Toyear        string `gorm:""`
	Qualification string `gorm:""`
	Description   string `gorm:""`
}

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 JobID

type JobID struct {
	Job_ID uint
}

type Login

type Login struct {
	Email    string
	Password string
}

Used for login of rec/candi

type Person

type Person struct {
	RecruiterID uint
}

type ProfessionalExperience

type ProfessionalExperience struct {
	Email                 string `gorm:""`
	Company               string `gorm:""`
	Position              string `gorm:""`
	Duration              string `gorm:""`
	ExperienceDescription string `gorm:""`
}

type Project

type Project struct {
	Email              string `gorm:""`
	Title              string `gorm:""`
	Link               string `gorm:""`
	ProjectDescription string `gorm:""`
}

type Rec

type Rec struct {
	Recruiter_ID uint
}

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

type RecruiterResponse struct {
	Recruiter Recruiter
	Token     string
}

Custom response model for login signup of recruiter

type Roletype

type Roletype struct {
	Role_Type string
}

type TokenManager

type TokenManager struct {
	Token    string
	UserName string
}

user Token manager model

type Usertoken

type Usertoken struct {
	Email string `gorm:"unique Not null"`
	Token string `gorm:"unique; Not null"`
}

User token model with gorm mapping

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL