mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
Enforce brewery ownership on update and delete (#267)
This commit is contained in:
@@ -6,8 +6,8 @@ public sealed class BreweryPost
|
||||
public Guid BreweryPostId { get; set; }
|
||||
|
||||
// FK References
|
||||
// Note: An empty GUID signifies that this object is incomplete
|
||||
public Guid PostedById { get; set; }
|
||||
public string PostedBy { get; set; } = string.Empty;
|
||||
|
||||
// Attributes
|
||||
public string BreweryName { get; set; } = string.Empty;
|
||||
@@ -21,6 +21,7 @@ public sealed class BreweryPost
|
||||
// Navigation Properties
|
||||
public BreweryPostLocation? Location { get; set; }
|
||||
public List<BeerPost> BeerPosts { get; set; } = [];
|
||||
public string PostedBy { get; set; } = string.Empty;
|
||||
|
||||
// Query-computed
|
||||
public DistanceInformation? Distance { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user