| | 1 | | using MUNity.Database.Models.Conference.Roles; |
| | 2 | | using MUNity.Database.Models.User; |
| | 3 | | using MUNityCore.Models.User; |
| | 4 | | using System; |
| | 5 | | using System.Collections.Generic; |
| | 6 | | using System.ComponentModel.DataAnnotations; |
| | 7 | | using System.ComponentModel.DataAnnotations.Schema; |
| | 8 | | using System.Linq; |
| | 9 | | using System.Runtime.Serialization; |
| | 10 | | using System.Text.Json.Serialization; |
| | 11 | | using System.Threading.Tasks; |
| | 12 | |
|
| | 13 | | namespace MUNity.Database.Models.Conference; |
| | 14 | |
|
| | 15 | | /// <summary> |
| | 16 | | /// If a user applies to a Role this will create a RoleApplication. |
| | 17 | | /// When an Application is Created to the Role there is a Link between the Role itself |
| | 18 | | /// The User that made the application plus some more information of this application |
| | 19 | | /// </summary> |
| | 20 | | public class RoleApplication |
| | 21 | | { |
| 0 | 22 | | public int RoleApplicationId { get; set; } |
| | 23 | |
|
| 1 | 24 | | public MunityUser User { get; set; } |
| | 25 | |
|
| | 26 | |
|
| 1 | 27 | | public AbstractConferenceRole Role { get; set; } |
| | 28 | |
|
| 1 | 29 | | public DateTime ApplyDate { get; set; } |
| | 30 | |
|
| | 31 | | [Required] |
| | 32 | | [MaxLength(200)] |
| 1 | 33 | | public string Title { get; set; } |
| | 34 | |
|
| | 35 | |
|
| 1 | 36 | | public string Content { get; set; } |
| | 37 | |
|
| | 38 | |
|
| | 39 | | } |