26 lines
1,009 B
C#
26 lines
1,009 B
C#
|
|
namespace WordVersioning.Api.Models;
|
||
|
|
|
||
|
|
/// <summary>Template เอกสาร .docx ที่มี content controls (FR-9) — ไฟล์เก็บใน MinIO bucket docx-templates</summary>
|
||
|
|
public class Template
|
||
|
|
{
|
||
|
|
public Guid Id { get; set; }
|
||
|
|
|
||
|
|
public string Name { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
public string? Description { get; set; }
|
||
|
|
|
||
|
|
/// <summary>MinIO object key ใน bucket docx-templates (เปลี่ยนทุกครั้งที่ replace ไฟล์)</summary>
|
||
|
|
public string ObjectKey { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
/// <summary>soft-delete flag — ห้ามลบแถวจริงเพราะ document เก่ายังอ้าง TemplateId อยู่</summary>
|
||
|
|
public bool IsActive { get; set; } = true;
|
||
|
|
|
||
|
|
public DateTimeOffset CreatedAt { get; set; }
|
||
|
|
|
||
|
|
public DateTimeOffset UpdatedAt { get; set; }
|
||
|
|
|
||
|
|
public List<TemplateField> Fields { get; set; } = new();
|
||
|
|
|
||
|
|
public List<Document> Documents { get; set; } = new();
|
||
|
|
}
|