namespace Domain.Entities;
///
/// Represents a user-submitted post about a brewery. Maps to the BreweryPost table.
/// A user account cannot be deleted while it has an associated brewery post.
///
public class BreweryPost
{
///
/// Primary key identifying this brewery post. Maps to BreweryPostID.
///
public Guid BreweryPostId { get; set; }
///
/// Foreign key referencing the that authored this post. Maps to PostedByID.
///
public Guid PostedById { get; set; }
///
/// The name of the brewery being posted about.
///
public string BreweryName { get; set; } = string.Empty;
///
/// Free-text description of the brewery.
///
public string Description { get; set; } = string.Empty;
///
/// The date and time the post was created.
///
public DateTime CreatedAt { get; set; }
///
/// The date and time the post was last updated, or null if it has never been updated.
///
public DateTime? UpdatedAt { get; set; }
///
/// SQL Server ROWVERSION concurrency token used to detect concurrent updates. null until the row has been read from the database.
///
public byte[]? Timer { get; set; }
///
/// The associated for this post, if one has been set. This is a one-to-one navigation property.
///
public BreweryPostLocation? Location { get; set; }
}