Add missing collection model

main
Pat Hartl 2023-12-04 01:42:02 -06:00
parent db8d3e4bf6
commit 5ef16fc4cc
1 changed files with 15 additions and 0 deletions

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; }
}
}