| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.ComponentModel.DataAnnotations; |
| | 4 | | using System.ComponentModel.DataAnnotations.Schema; |
| | 5 | | using System.Linq; |
| | 6 | | using System.Runtime.Serialization; |
| | 7 | | using System.Text.Json.Serialization; |
| | 8 | | using System.Threading.Tasks; |
| | 9 | | using MUNity.Database.Interfaces; |
| | 10 | | using MUNity.Database.Models.User; |
| | 11 | |
|
| | 12 | | namespace MUNity.Database.Models.Conference; |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// An organization can host different projects. For example could the project group |
| | 16 | | /// all conferences inside a specific city over the years: |
| | 17 | | /// Model United Nations Berlin 2015 |
| | 18 | | /// Model United Nations Berlin 2016 |
| | 19 | | /// |
| | 20 | | /// The organization could also group different styles of conferences inside a project |
| | 21 | | /// for example: |
| | 22 | | /// Model United Nations in the classroom |
| | 23 | | /// Model United Nations in the university |
| | 24 | | /// </summary> |
| | 25 | | public class Project : IIsDeleted |
| | 26 | | { |
| 28 | 27 | | public string ProjectId { get; set; } = ""; |
| | 28 | |
|
| | 29 | | [MaxLength(250)] |
| 9 | 30 | | public string ProjectName { get; set; } |
| | 31 | |
|
| | 32 | | [MaxLength(20)] |
| 26 | 33 | | public string ProjectShort { get; set; } |
| | 34 | |
|
| 9 | 35 | | public Organization.Organization ProjectOrganization { get; set; } |
| | 36 | |
|
| 2 | 37 | | public ICollection<Conference> Conferences { get; set; } |
| | 38 | |
|
| 1 | 39 | | public MunityUser CreationUser { get; set; } |
| | 40 | |
|
| 9 | 41 | | public Project() |
| 9 | 42 | | { |
| | 43 | |
|
| 9 | 44 | | } |
| | 45 | |
|
| 1 | 46 | | public bool IsDeleted { get; set; } |
| | 47 | | } |