From 08819c6738a4f82ccf07ae5ed60835b087f7bb34 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sun, 6 Nov 2022 02:10:44 -0600 Subject: AƱadidos grupos y usuarios MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Models/Group.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Models/Group.cs (limited to 'Models/Group.cs') diff --git a/Models/Group.cs b/Models/Group.cs new file mode 100644 index 0000000..f5ed59d --- /dev/null +++ b/Models/Group.cs @@ -0,0 +1,12 @@ +using System.ComponentModel.DataAnnotations; +using LibraryAPI.Validators; + +namespace LibraryAPI.Models { + public class Group { + public long Id { get; set; } + public ICollection? Users { get; set; } + [Required] + [Name] + public string? Name {get; set; } + } +} -- cgit v1.2.3