package models

import "time"

// FavoriteJob represents a saved/favorited job by a user
type FavoriteJob struct {
	ID        int       `json:"id" db:"id"`
	UserID    int       `json:"userId" db:"user_id"`
	JobID     int       `json:"jobId" db:"job_id"`
	CreatedAt time.Time `json:"createdAt" db:"created_at"`
}

// FavoriteJobWithDetails includes job information
type FavoriteJobWithDetails struct {
	FavoriteJob
	JobTitle       string   `json:"jobTitle"`
	CompanyID      int      `json:"companyId"`
	CompanyName    string   `json:"companyName"`
	CompanyLogoURL *string  `json:"companyLogoUrl,omitempty"`
	Location       *string  `json:"location,omitempty"`
	SalaryMin      *float64 `json:"salaryMin,omitempty"`
	SalaryMax      *float64 `json:"salaryMax,omitempty"`
	SalaryType     *string  `json:"salaryType,omitempty"`
}
