Phase 3
This commit is contained in:
parent
9321f5a370
commit
25c2ce53cd
23 changed files with 1746 additions and 68 deletions
20
backend/WordVersioning.Api/Models/DocumentFieldValue.cs
Normal file
20
backend/WordVersioning.Api/Models/DocumentFieldValue.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
namespace WordVersioning.Api.Models;
|
||||
|
||||
/// <summary>ค่าล่าสุดต่อ field ของ document (FR-11) — PK คือ (DocumentId, FieldKey)</summary>
|
||||
public class DocumentFieldValue
|
||||
{
|
||||
public Guid DocumentId { get; set; }
|
||||
|
||||
public string FieldKey { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>เก็บเป็น string ทุก type (number/date ก็ตามที่ผู้ใช้กรอก/extract มา)</summary>
|
||||
public string Value { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>version ล่าสุดที่อัปเดตค่านี้</summary>
|
||||
public Guid SourceVersionId { get; set; }
|
||||
|
||||
/// <summary>จาก claim `sub` ของผู้กด Save & Version / ผู้ generate</summary>
|
||||
public string UpdatedByUserId { get; set; } = string.Empty;
|
||||
|
||||
public DateTimeOffset UpdatedAt { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue