mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
29 lines
874 B
C#
29 lines
874 B
C#
namespace Domain.Entities;
|
|
|
|
public sealed record CoordinateData(double Latitude, double Longitude);
|
|
|
|
/// <summary>The distance, as computed by the database, from a query's origin point to a brewery.</summary>
|
|
public sealed record DistanceInformation(CoordinateData From, double DistanceMetres);
|
|
|
|
public sealed class BreweryPostLocation
|
|
{
|
|
// PK
|
|
public Guid BreweryPostLocationId { get; set; }
|
|
|
|
// FK References
|
|
public Guid BreweryPostId { get; set; }
|
|
public Guid CityId { get; set; }
|
|
|
|
// Attributes
|
|
public string AddressLine1 { get; set; } = string.Empty;
|
|
public string? AddressLine2 { get; set; }
|
|
public string PostalCode { get; set; } = string.Empty;
|
|
public CoordinateData? Coordinates { get; set; }
|
|
|
|
// Audit Fields
|
|
public byte[]? RowVersion { get; set; }
|
|
|
|
// Navigation Properties
|
|
public City? City { get; set; }
|
|
}
|