implement Phase 1-2
This commit is contained in:
parent
41573b3c4f
commit
b976cf3124
23 changed files with 1291 additions and 79 deletions
20
backend/WordVersioning.Api/Models/Document.cs
Normal file
20
backend/WordVersioning.Api/Models/Document.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
namespace WordVersioning.Api.Models;
|
||||
|
||||
/// <summary>เอกสารหนึ่งฉบับที่ถูก track — 1 document : N versions (spec ส่วน 7)</summary>
|
||||
public class Document
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>ค่า custom property `SavedByAddIn` ที่ stamp ไว้ในไฟล์ (FR-1)</summary>
|
||||
public string AddInSignature { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>เอกสารที่สร้างจาก template (FR-10) — null ถ้า track เอกสารเปล่า
|
||||
/// (Phase 3 จะเติม FK ไป Template เมื่อมี entity)</summary>
|
||||
public Guid? TemplateId { get; set; }
|
||||
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
|
||||
public List<DocumentVersion> Versions { get; set; } = new();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue