feat: image url migration

registrations can now store image urls, which will be shown at view.html
This commit is contained in:
2025-06-02 03:01:10 +02:00
parent 4a82822d64
commit f7583738d7
12 changed files with 675 additions and 14 deletions

View File

@@ -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

View File

@@ -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,

View File

@@ -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; }

View File

@@ -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

View File

@@ -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