Add missing collection model
This commit is contained in:
parent
db8d3e4bf6
commit
5ef16fc4cc
1 changed files with 15 additions and 0 deletions
15
LANCommander/Data/Models/Collection.cs
Normal file
15
LANCommander/Data/Models/Collection.cs
Normal 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; }
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue