Enemy classes and controllers

This commit is contained in:
2020-03-07 10:57:15 +01:00
parent 5c6b19f360
commit 2e7aed8d49
10 changed files with 363 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace EstusShots.Server.Models
{
@@ -6,7 +7,7 @@ namespace EstusShots.Server.Models
{
public Guid DrinkId { get; set; }
public string Name { get; set; } = default!;
[MaxLength(50)] public string Name { get; set; } = default!;
public double Vol { get; set; }
}

View File

@@ -0,0 +1,20 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace EstusShots.Server.Models
{
public class Enemy
{
public Guid EnemyId { get; set; }
[MaxLength(50)] public string Name { get; set; } = default!;
public bool Boss { get; set; }
public bool Defeated { get; set; }
public Guid? SeasonId { get; set; }
public Season? Season { get; set; }
}
}

View File

@@ -19,5 +19,7 @@ namespace EstusShots.Server.Models
public DateTime? End { get; set; }
public List<Episode> Episodes { get; set; } = default!;
public List<Enemy> Enemies { get; set; } = default!;
}
}