mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 05:30:13 +01:00
feat: image url migration
registrations can now store image urls, which will be shown at view.html
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using WebApp.Entities;
|
||||
|
||||
namespace WebApp.DTOs;
|
||||
@@ -8,6 +8,7 @@ public record class EventCreateDto
|
||||
(
|
||||
[Required][StringLength(50)] string Title,
|
||||
[StringLength(500)] string Description,
|
||||
string? ImageURL,
|
||||
[Required][StringLength(100)] string Location,
|
||||
[Required] DateTime? EventDate,
|
||||
ICollection<EventSkill> EventSkills
|
||||
|
||||
@@ -11,6 +11,7 @@ public record class EventDetailsDto
|
||||
[Required] public string? OrganisationName { get; set; }
|
||||
[Required][StringLength(50)] public string Title { get; set; }
|
||||
[StringLength(500)] public string Description { get; set; }
|
||||
public string? ImageURL { get; set; }
|
||||
[Required][StringLength(100)] public string Location { get; set; }
|
||||
[Required] public DateTime? EventDate { get; set; }
|
||||
//ICollection<EventSkill> EventSkills,
|
||||
|
||||
@@ -10,6 +10,7 @@ public record class EventSummaryDto {
|
||||
[Required] public int OrganisationId { get; set; }
|
||||
[Required] [StringLength(50)] public string Title { get; set; }
|
||||
[StringLength(500)] public string Description { get; set; }
|
||||
public string? ImageURL { get; set; }
|
||||
[Required] [StringLength(100)] public string Location { get; set; }
|
||||
[Required] public DateTime? EventDate { get; set; }
|
||||
public ICollection<SkillSummaryDto> EventSkills { get; set; }
|
||||
|
||||
@@ -10,6 +10,7 @@ public record class EventSummaryNoErDto(
|
||||
[Required] int OrganisationId,
|
||||
[Required][StringLength(50)] string Title,
|
||||
[StringLength(500)] string Description,
|
||||
string? ImageURL,
|
||||
[Required][StringLength(100)] string Location,
|
||||
[Required] DateTime? EventDate,
|
||||
ICollection<EventSkill> EventSkills
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using WebApp.Entities;
|
||||
|
||||
namespace WebApp.DTOs;
|
||||
@@ -8,6 +8,7 @@ public record class EventUpdateDto
|
||||
(
|
||||
[Required][StringLength(50)] string Title,
|
||||
[StringLength(500)] string Description,
|
||||
string? ImageURL,
|
||||
[Required][StringLength(100)] string Location,
|
||||
[Required] DateTime? EventDate,
|
||||
ICollection<EventSkill> EventSkills
|
||||
|
||||
Reference in New Issue
Block a user