package models

import "time"

// FavoriteJob represents a saved/favorited job by a user
type FavoriteJob struct {
	ID        string    `json:"id" db:"id"`
	UserID    string    `json:"userId" db:"user_id"`
	JobID     string    `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      string   `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"`
}
