mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 07:13:12 +00:00
34 lines
1.3 KiB
C#
34 lines
1.3 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Data.SeaHavenIndustries
|
|
{
|
|
public class Vendor : FullAuditEntity
|
|
{
|
|
public string? CompanyName { get; set; }
|
|
public string? ContactName { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Phone { get; set; }
|
|
public string? CompanyPhone { get; set; }
|
|
public string? Address { get; set; }
|
|
public string? City { get; set; }
|
|
public string? State { get; set; }
|
|
public string? Zip { get; set; }
|
|
public string? TradeSpecialties { get; set; }
|
|
public string? GoogleMapsUrl { get; set; }
|
|
public string? Notes { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
public string? PreferredContact { get; set; }
|
|
public string AvailabilityStatus { get; set; } = "Unknown";
|
|
public DateTime? AvailabilityUpdatedAt { get; set; }
|
|
|
|
public int? CompanyId { get; set; }
|
|
[ForeignKey(nameof(CompanyId))]
|
|
public virtual VendorCompany? Company { get; set; }
|
|
|
|
[NotMapped]
|
|
public int TotalJobs { get; set; }
|
|
public ICollection<Dispatch>? Dispatches { get; set; }
|
|
public ICollection<VendorAuditLog>? AuditLogs { get; set; }
|
|
public ICollection<SitePreferredVendor>? SitePreferences { get; set; }
|
|
}
|
|
}
|