From 5ef16fc4cc786022c466cdb3e71e2a297f456244 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Mon, 4 Dec 2023 01:42:02 -0600 Subject: [PATCH] Add missing collection model --- LANCommander/Data/Models/Collection.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 LANCommander/Data/Models/Collection.cs diff --git a/LANCommander/Data/Models/Collection.cs b/LANCommander/Data/Models/Collection.cs new file mode 100644 index 0000000..c1be8aa --- /dev/null +++ b/LANCommander/Data/Models/Collection.cs @@ -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 Games { get; set; } + [JsonIgnore] + public virtual ICollection Roles { get; set; } + } +}