| | 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 | | using MUNity.Database.Models.Resolution; |
| | 13 | |
|
| | 14 | | namespace MUNity.Database.Models.Conference; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// The participation of a user for a role inside of a conference. |
| | 18 | | /// </summary> |
| | 19 | | public class Participation |
| | 20 | | { |
| | 21 | |
|
| 0 | 22 | | public int ParticipationId { get; set; } |
| | 23 | |
|
| 2 | 24 | | public AbstractConferenceRole Role { get; set; } |
| | 25 | |
|
| 2 | 26 | | public MunityUser User { get; set; } |
| | 27 | |
|
| 2 | 28 | | public bool IsMainRole { get; set; } |
| | 29 | |
|
| 2 | 30 | | public decimal Cost { get; set; } |
| | 31 | |
|
| 2 | 32 | | public decimal Paid { get; set; } |
| | 33 | |
|
| 0 | 34 | | public ICollection<ResaSupporter> SupportingResolutions { get; set; } |
| | 35 | |
|
| | 36 | | /// <summary> |
| | 37 | | /// The ParticipationSecret is a Key that can identify the user as a participant |
| | 38 | | /// it should be Unique and be usable and can be used as a shared password between the |
| | 39 | | /// team and a user to check the users identity when at the conference. |
| | 40 | | /// </summary> |
| | 41 | | [MaxLength(200)] |
| 1 | 42 | | public string ParticipationSecret { get; set; } |
| | 43 | |
|
| | 44 | | } |