shoc-backend/Data.SeaHavenIndustries/Models/TradeCatalog.cs

28 lines
1,014 B
C#

namespace Data.SeaHavenIndustries
{
// SH-249 PROVISIONAL canonical trade vocabulary. Sourced from the
// in-repo prototype seed (Api.SeaHavenIndustries/Program.cs, disabled
// development seeding) because no authoritative Product list exists in
// the repo. Product must confirm the list before release; after the
// SH249_TradesVocabulary migration ships, extend the vocabulary only
// through new migrations (and keep this catalog in sync — tests assert
// the seeded table matches this catalog).
public static class TradeCatalog
{
public static readonly IReadOnlyList<string> CanonicalTrades = new[]
{
"Plumbing",
"Electrical",
"HVAC",
"Fire/Life Safety",
"General",
"Roofing",
"Janitorial",
"Painting",
"Locksmith",
"Carpentry"
};
public static string Normalize(string name) => name.Trim().ToLowerInvariant();
}
}