Event.cs 1.0 KB

123456789101112131415161718192021222324252627282930
  1. using System.ComponentModel.DataAnnotations;
  2. using System.Text.Json.Serialization;
  3. namespace OnlineMetodist.API.Models
  4. {
  5. public class Event
  6. {
  7. public Guid Id { get; set; }
  8. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
  9. public DateOnly DateOfEvent { get; set; }
  10. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
  11. public DateOnly? EndDateOfEvent { get; set; }
  12. public string Specifications { get; set; } //описание данных в виде json
  13. public Guid IdFormOfWork { get; set; }
  14. public double? Coefficient { get; set; }
  15. public Boolean? IsApproved { get; set; }
  16. public string? Student { get; set; }
  17. [JsonIgnore]
  18. public FormOfWork FormOfWorkFK { get; set; } = null!;
  19. public Guid EmployeeId { get; set; }
  20. [JsonIgnore]
  21. public Employee Employee { get; set; } = null!;
  22. //добавить поле с ФИО студента для участия в чем-либо
  23. }
  24. }