models + fix DTO
This commit is contained in:
13
PF3/Models/SoundCategory.cs
Normal file
13
PF3/Models/SoundCategory.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PF3.Models;
|
||||
|
||||
public class SoundCategory
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
[Required, MaxLength(60)]
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
public ICollection<Sound> Sounds { get; set; } = new List<Sound>();
|
||||
}
|
||||
Reference in New Issue
Block a user