// Models/CompanyModel.cs
namespace FrymasterBadgeApp.Models
{
    public class CompanyModel
    {
        public int Id { get; set; }
        public string Name { get; set; } = string.Empty;
        public string Address { get; set; } = string.Empty;
        public string City { get; set; } = string.Empty;
        public string State { get; set; } = string.Empty;
        public string Zip { get; set; } = string.Empty;
        public string Phone { get; set; } = string.Empty;

        // This maps to the "LogoPath" column in your DB
        public string LogoPath { get; set; } = string.Empty;

        // Helper property to check if a logo exists locally
        public bool HasLogo => !string.IsNullOrEmpty(LogoPath) && File.Exists(LogoPath);
    }
}
