| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.ComponentModel.DataAnnotations; |
| | 4 | | using MUNity.Base; |
| | 5 | | using MUNity.Database.Models.Conference; |
| | 6 | | using MUNity.Database.Models.Conference.Roles; |
| | 7 | | using MUNity.Database.Models.User; |
| | 8 | | using MUNity.Database.Models.Website; |
| | 9 | | using MUNityCore.Models.User; |
| | 10 | |
|
| | 11 | | namespace MUNity.Database.Models.Conference |
| | 12 | | { |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// A conference is as the name tells a single conference. |
| | 16 | | /// Like Model United Nations London 2021. This means it is a single |
| | 17 | | /// event of maybe a list of Model United Nation Conferences. If there are more |
| | 18 | | /// the conference, for example a conference every year, then this will can be |
| | 19 | | /// found by the Project |
| | 20 | | /// </summary> |
| | 21 | | public class Conference |
| | 22 | | { |
| | 23 | |
|
| 91 | 24 | | [MaxLength(80)] public string ConferenceId { get; set; } = ""; |
| | 25 | |
|
| | 26 | | [MaxLength(150)] |
| 10 | 27 | | public string Name { get; set; } |
| | 28 | |
|
| | 29 | | [MaxLength(250)] |
| 10 | 30 | | public string FullName { get; set; } |
| | 31 | |
|
| | 32 | | [MaxLength(18)] |
| 26 | 33 | | public string ConferenceShort { get; set; } |
| | 34 | |
|
| 2 | 35 | | public DateTime? StartDate { get; set; } |
| | 36 | |
|
| 2 | 37 | | public DateTime? EndDate { get; set; } |
| | 38 | |
|
| 15 | 39 | | public DateTime CreationDate { get; set; } |
| | 40 | |
|
| 1 | 41 | | public MunityUser CreationUser { get; set; } |
| | 42 | |
|
| 0 | 43 | | public ConferenceApplicationOptions ApplicationOptions { get; set; } |
| | 44 | |
|
| 18 | 45 | | public ICollection<Committee> Committees { get; set; } |
| | 46 | |
|
| 11 | 47 | | public ICollection<AbstractConferenceRole> Roles { get; set; } |
| | 48 | |
|
| 10 | 49 | | public ICollection<TeamRoleGroup> TeamRoleGroups { get; set; } |
| | 50 | |
|
| 0 | 51 | | public ICollection<Delegation> Delegations { get; set; } |
| | 52 | |
|
| 0 | 53 | | public ICollection<DelegationApplication> DelegationApplications { get; set; } |
| | 54 | |
|
| 0 | 55 | | public ICollection<ConferenceWebPage> WebPages { get; set; } |
| | 56 | |
|
| 8 | 57 | | public Project ConferenceProject { get; set; } |
| | 58 | |
|
| 8 | 59 | | public EConferenceVisibilityMode Visibility { get; set; } |
| | 60 | |
|
| 2 | 61 | | public decimal GeneralParticipationCost { get; set; } |
| | 62 | |
|
| 8 | 63 | | public Conference() |
| 8 | 64 | | { |
| 8 | 65 | | Committees = new List<Committee>(); |
| 8 | 66 | | TeamRoleGroups = new List<TeamRoleGroup>(); |
| 8 | 67 | | Roles = new List<AbstractConferenceRole>(); |
| 8 | 68 | | Visibility = EConferenceVisibilityMode.Users; |
| 8 | 69 | | CreationDate = DateTime.Now; |
| 8 | 70 | | } |
| | 71 | | } |
| | 72 | | } |