mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 03:43:11 +00:00
Seed an organization-wide Area catalogue (East, Central, West, California) with stable ids, add a nullable AreaId to VendorCompany, allow only Admins to change it through the roster endpoints, expose areas facet metadata and an areas[n] company-directory filter with the __unassigned__ sentinel.
29 lines
1,013 B
C#
29 lines
1,013 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Data.SeaHavenIndustries
|
|
{
|
|
public class VendorCompany : FullAuditEntity
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
public string NormalizedName { get; set; } = string.Empty;
|
|
public string? CompanyPhone { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Address { get; set; }
|
|
public string? City { get; set; }
|
|
public string? State { get; set; }
|
|
public string? Zip { get; set; }
|
|
public string? GoogleMapsUrl { get; set; }
|
|
public string? Notes { get; set; }
|
|
|
|
// SH-278: optional dispatcher territory (0 or 1 per company), admin-assigned.
|
|
public int? AreaId { get; set; }
|
|
[ForeignKey(nameof(AreaId))]
|
|
public Area? Area { get; set; }
|
|
|
|
[Timestamp]
|
|
public byte[]? RowVersion { get; set; }
|
|
|
|
public ICollection<Vendor>? Vendors { get; set; }
|
|
}
|
|
}
|