feat: use the new, revised database model

This commit is contained in:
2025-04-28 02:34:03 +02:00
parent b4b81355c1
commit 1083cfa3ff
7 changed files with 570 additions and 9 deletions

View File

@@ -1,11 +1,15 @@
using System.ComponentModel.DataAnnotations;
using WebApp.Entities;
namespace WebApp.DTOs;
public record class EventsDto(
int Id,
int IdOrganisation, //foreign key
string Place,
[StringLength(200)] string Description,
DateTime Date
int EventId,
int OrganisationId, //foreign key
[StringLength(200)] string Title,
[StringLength(800)] string Description,
[StringLength(100)] string Location,
DateTime EventDate,
Organisation? Organisation,
ICollection<EventSkill> EventSkills,
ICollection<EventRegistration> EventRegistrations
);