Add missing collection model

This commit is contained in:
Pat Hartl 2023-12-04 01:42:02 -06:00
parent db8d3e4bf6
commit 5ef16fc4cc

View file

@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
{
[Table("Collections")]
public class Collection : BaseModel
{
public string Name { get; set; }
[JsonIgnore]
public virtual ICollection<Game> Games { get; set; }
[JsonIgnore]
public virtual ICollection<Role> Roles { get; set; }
}
}