using System; namespace FlowAPI.Application.DTOs.Template { /// /// A user template. Content is an opaque JSON document produced by the web client: /// { "version": 2, "nodes": [...], "edges": [...] } in React Flow format. /// public class TemplateDto { public Guid Id { get; set; } public string Title { get; set; } = string.Empty; public string Description { get; set; } = string.Empty; public string Category { get; set; } = string.Empty; public string Icon { get; set; } = string.Empty; public string Content { get; set; } = string.Empty; public DateTime CreatedAt { get; set; } } public class CreateTemplateDto { public string Title { get; set; } = string.Empty; public string? Description { get; set; } public string? Category { get; set; } public string? Icon { get; set; } public string Content { get; set; } = string.Empty; } public class UpdateTemplateDto { public string? Title { get; set; } public string? Description { get; set; } public string? Category { get; set; } public string? Icon { get; set; } } }