using System.ComponentModel.DataAnnotations; namespace TarninaHub.Application.Dtos; public sealed record KnowledgeItemRequest( [Required, StringLength(200, MinimumLength = 3)] string Title, [Required] string Kind, string? ChallengeId, string? SourceUrl, IReadOnlyList>? Attachments, bool Published); public sealed record KnowledgeItemResponse( string Id, string Title, string Kind, string? ChallengeId, string? SourceUrl, IReadOnlyList> Attachments, bool Published, DateTimeOffset? UpdatedAt); public sealed record SocialChallengeResponse( string Id, string Name, string Description, int Order);