type Applicant struct {
ID uint `json:"id" gorm:"primaryKey"`
CreatedAt time.Time
ApplicantName string `json:"applicant_name"`
}
type Company struct {
ID uint `json:"id" gorm:"primaryKey"`
CreatedAt time.Time
Name string `json:"company_name"`
Jobs []Job `gorm:"foreignKey:CompanyRefer"`
}
type Job struct {
ID uint `json:"id" gorm:"primaryKey"`
CreatedAt time.Time
Name string `json:"job_name"`
Description string `json:"description"`
City string `json:"city"`
Wage string `json:"wage"`
Date string `json:"date"`
CompanyRefer uint `json:"company_refer"`
}