mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 10:04:44 +00:00
Add BeerStyle entity and related properties; refactor BreweryDto to remove BeerPosts
This commit is contained in:
16
web/backend/Domain/Domain.Entities/Entities/BeerStyle.cs
Normal file
16
web/backend/Domain/Domain.Entities/Entities/BeerStyle.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Domain.Entities;
|
||||
|
||||
public sealed class BeerStyle
|
||||
{
|
||||
// PK
|
||||
public Guid BeerStyleId { get; set; } = Guid.Empty;
|
||||
|
||||
// Attributes
|
||||
public string BeerStyleName { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
// Audit Fields
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
||||
public byte[]? RowVersion { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user