| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.ComponentModel.DataAnnotations; |
| | 4 | | using System.Linq; |
| | 5 | | using System.Threading.Tasks; |
| | 6 | | using MUNity.Database.Models.User; |
| | 7 | |
|
| | 8 | | namespace MUNity.Database.Models.Resolution; |
| | 9 | |
|
| | 10 | | public class ResaElement |
| | 11 | | { |
| | 12 | |
|
| | 13 | | [Key] |
| 15 | 14 | | public string ResaElementId { get; set; } |
| | 15 | |
|
| 14 | 16 | | public string Topic { get; set; } = ""; |
| | 17 | |
|
| 14 | 18 | | public string Name { get; set; } = ""; |
| | 19 | |
|
| 14 | 20 | | public string FullName { get; set; } = ""; |
| | 21 | |
|
| 14 | 22 | | public string AgendaItem { get; set; } = ""; |
| | 23 | |
|
| 14 | 24 | | public string Session { get; set; } = ""; |
| | 25 | |
|
| 14 | 26 | | public string SubmitterName { get; set; } = ""; |
| | 27 | |
|
| 14 | 28 | | public string CommitteeName { get; set; } = ""; |
| | 29 | |
|
| 14 | 30 | | public DateTime CreatedDate { get; set; } = DateTime.Now; |
| | 31 | |
|
| 12 | 32 | | public ICollection<ResaPreambleParagraph> PreambleParagraphs { get; set; } |
| | 33 | |
|
| 16 | 34 | | public ICollection<ResaOperativeParagraph> OperativeParagraphs { get; set; } |
| | 35 | |
|
| 4 | 36 | | public string SupporterNames { get; set; } |
| | 37 | |
|
| 11 | 38 | | public ICollection<ResaAddAmendment> AddAmendments { get; set; } |
| | 39 | |
|
| 11 | 40 | | public ResolutionAuth Authorization { get; set; } |
| | 41 | |
|
| 10 | 42 | | public ResaElement() |
| 10 | 43 | | { |
| 10 | 44 | | this.ResaElementId = Guid.NewGuid().ToString(); |
| 10 | 45 | | this.PreambleParagraphs = new List<ResaPreambleParagraph>(); |
| 10 | 46 | | this.OperativeParagraphs = new List<ResaOperativeParagraph>(); |
| | 47 | | //this.Supporters = new List<ResaSupporter>(); |
| 10 | 48 | | this.AddAmendments = new List<ResaAddAmendment>(); |
| 10 | 49 | | this.Authorization = new ResolutionAuth(); |
| 10 | 50 | | } |
| | 51 | | } |