mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 01:54:43 +00:00
Modify brewery location dto to include denormalized data
This commit is contained in:
@@ -8,6 +8,7 @@ public class BreweryPostLocation
|
||||
public string? AddressLine2 { get; set; }
|
||||
public string PostalCode { get; set; } = string.Empty;
|
||||
public Guid CityId { get; set; }
|
||||
public City? City { get; set; }
|
||||
public byte[]? Coordinates { get; set; }
|
||||
public byte[]? Timer { get; set; }
|
||||
}
|
||||
|
||||
@@ -5,4 +5,34 @@ public class City
|
||||
public Guid CityId { get; set; }
|
||||
public string CityName { get; set; } = string.Empty;
|
||||
public Guid StateProvinceId { get; set; }
|
||||
|
||||
public StateProvince? StateProvince { get; set; }
|
||||
|
||||
public byte[]? Timer { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class StateProvince
|
||||
{
|
||||
public Guid StateProvinceId { get; set; }
|
||||
public string StateProvinceName { get; set; } = string.Empty;
|
||||
|
||||
// this is the iso 3166-2 code for the state/province, e.g. "CA" for California, "ON" for Ontario, etc.
|
||||
// and is rendered like US-CA for California, CA-ON for Ontario, etc.
|
||||
public string ISO3166_2 { get; set; } = string.Empty;
|
||||
public Guid CountryId { get; set; }
|
||||
|
||||
public Country? Country { get; set; }
|
||||
|
||||
public byte[]? Timer { get; set; }
|
||||
}
|
||||
|
||||
public class Country
|
||||
{
|
||||
public Guid CountryId { get; set; }
|
||||
public string CountryName { get; set; } = string.Empty;
|
||||
|
||||
public string ISO3166_1 { get; set; } = string.Empty; // this is the iso 3166-1 alpha-2 code for the country, e.g. "US" for United States, "CA" for Canada, etc.
|
||||
|
||||
public byte[]? Timer { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user