using System.ComponentModel.DataAnnotations; namespace MoonlightServers.Shared.Admin.Templates; public class UpdateTemplateDto { [Required, MaxLength(30)] public string Name { get; set; } = string.Empty; [Required, MaxLength(255)] public string Description { get; set; } = string.Empty; [Required, MaxLength(30)] public string Author { get; set; } = string.Empty; [Required, MaxLength(30)] public string Version { get; set; } = string.Empty; [MaxLength(2048)] public string? UpdateUrl { get; set; } [MaxLength(2048)] public string? DonateUrl { get; set; } public UpdateFilesConfigDto FilesConfig { get; set; } = new(); public UpdateLifecycleConfigDto LifecycleConfig { get; set; } = new(); public UpdateInstallationConfigDto InstallationConfig { get; set; } = new(); public UpdateMiscellaneousConfigDto MiscellaneousConfig { get; set; } = new(); public bool AllowUserDockerImageChange { get; set; } public int? DefaultDockerImageId { get; set; } }