| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.ComponentModel.DataAnnotations; |
| | | 4 | | using System.Linq; |
| | | 5 | | using System.Runtime.Serialization; |
| | | 6 | | using System.Text.Json.Serialization; |
| | | 7 | | using System.Threading.Tasks; |
| | | 8 | | using MUNity.Database.Interfaces; |
| | | 9 | | using MUNity.Database.Models.Conference; |
| | | 10 | | using MUNityCore.Models; |
| | | 11 | | |
| | | 12 | | namespace MUNity.Database.Models.Organization; |
| | | 13 | | |
| | | 14 | | [DataContract] |
| | | 15 | | public class Organization : IIsDeleted |
| | | 16 | | { |
| | 50 | 17 | | public string OrganizationId { get; set; } = ""; |
| | | 18 | | |
| | | 19 | | [MaxLength(150)] |
| | 13 | 20 | | public string OrganizationName { get; set; } |
| | | 21 | | |
| | | 22 | | [MaxLength(18)] |
| | 37 | 23 | | public string OrganizationShort { get; set; } |
| | | 24 | | |
| | 18 | 25 | | public ICollection<OrganizationRole> Roles { get; set; } |
| | | 26 | | |
| | 16 | 27 | | public ICollection<OrganizationMember> Member { get; set; } |
| | | 28 | | |
| | 23 | 29 | | public ICollection<Project> Projects { get; set; } |
| | | 30 | | |
| | | 31 | | |
| | 15 | 32 | | public Organization() |
| | 15 | 33 | | { |
| | 15 | 34 | | Roles = new List<OrganizationRole>(); |
| | 15 | 35 | | Member = new List<OrganizationMember>(); |
| | 15 | 36 | | Projects = new List<Project>(); |
| | 15 | 37 | | } |
| | | 38 | | |
| | 3 | 39 | | public bool IsDeleted { get; set; } |
| | | 40 | | } |