Initial commit

This commit is contained in:
Stedoss
2023-12-07 00:20:59 +00:00
commit 284a36412d
66 changed files with 7591 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using System.Text.Json.Serialization;
namespace YPS.Beer.Models;
public class Beer
{
public int Id { get; set; }
public string Name { get; set; } = null!;
public string Tagline { get; set; } = null!;
[JsonPropertyName("first_brewed")]
public string FirstBrewed { get; set; } = null!;
public string Description { get; set; } = null!;
[JsonPropertyName("image_url")]
public string ImageUrl { get; set; } = null!;
public float Abv { get; set; }
public float Iby { get; set; }
[JsonPropertyName("food_pairing")]
public string[] FoodPairing { get; set; } = null!;
}

View File

@@ -0,0 +1,9 @@
namespace YPS.Beer.Models;
public class Favourite
{
public int Id { get; set; }
public string UserId { get; set; } = null!;
public User User { get; set; } = null!;
public int BeerId { get; set; }
}

View File

@@ -0,0 +1,8 @@
using Microsoft.AspNetCore.Identity;
namespace YPS.Beer.Models;
public class User : IdentityUser
{
public ICollection<Favourite> Favourites { get; } = new List<Favourite>();
}