using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace JobTrackerApi.Models
{
public class Company
{
    public int Id { get; set; }
    public string? OwnerUserId { get; set; }
    public string Name { get; set; } = "";
    public string? Location { get; set; }
    public string? Source { get; set; } // e.g., Finn.no, LinkedIn

    // Lightweight CRM fields
    public string? RecruiterName { get; set; }
    public string? RecruiterEmail { get; set; }
    public string? RecruiterLinkedIn { get; set; }
    public DateTime? LastContactedAt { get; set; }
    public DateTime? NextContactAt { get; set; }
    public string? PipelineStage { get; set; }

    [JsonIgnore]
    public List<JobApplication> Jobs { get; set; } = new();
}
}
