mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
30 lines
878 B
C#
30 lines
878 B
C#
namespace Domain.Entities;
|
|
|
|
public sealed class BeerPost
|
|
{
|
|
// PK
|
|
public Guid BeerPostId { get; set; } = Guid.Empty;
|
|
|
|
// FK References
|
|
public Guid PostedById { get; set; } = Guid.Empty;
|
|
public Guid BeerStyleId { get; set; } = Guid.Empty;
|
|
public Guid BrewedById { get; set; } = Guid.Empty;
|
|
|
|
// Attributes
|
|
public string Name { get; set; } = string.Empty;
|
|
public string Description { get; set; } = string.Empty;
|
|
public decimal Abv { get; set; }
|
|
public int Ibu { get; set; }
|
|
|
|
// Audit Fields
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
|
public byte[]? RowVersion { get; set; }
|
|
|
|
// Navigation Properties
|
|
public UserAccount? PostedBy { get; set; }
|
|
public BreweryPost? BrewedBy { get; set; }
|
|
|
|
public BeerStyle? BeerStyle { get; set; }
|
|
}
|