25 lines
591 B
C#
25 lines
591 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Core.Printing;
|
|
|
|
namespace Core.Entities;
|
|
|
|
/// <summary>
|
|
/// Saved page-printer recipe: template markdown, entity type, and filters. Merged output is not stored.
|
|
/// </summary>
|
|
public class PrintPreset
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(100)]
|
|
public string Name { get; set; } = null!;
|
|
|
|
public string TemplateMarkdown { get; set; } = string.Empty;
|
|
|
|
public PrintEntityType EntityType { get; set; }
|
|
|
|
public string FiltersJson { get; set; } = "{}";
|
|
|
|
public DateTime UpdatedAt { get; set; }
|
|
}
|