Files

27 lines
823 B
C#
Raw Permalink Normal View History

2026-08-19 23:25:08 +07:00
namespace mws.backend.dotnet.domain.Documents;
2026-08-13 23:10:22 +07:00
public enum DocumentType
{
Folder = 1,
Document = 2,
}
public class Document
{
public Guid Id { get; set; }
public Guid ProjectId { get; set; }
public Guid? ParentId { get; set; }
public string Title { get; set; } = string.Empty;
public DocumentType Type { get; set; } = DocumentType.Document;
2026-09-06 12:33:38 +07:00
public string? ContentHash { get; set; }
2026-09-15 22:23:54 +07:00
public string? StorageKey { get; set; }
2026-09-06 12:33:38 +07:00
public long? ContentSize { get; set; }
public DateTime? UpdatedContentAt { get; set; }
2026-08-13 23:10:22 +07:00
public Guid CreatedBy { get; set; }
public DateTime CreatedAt { get; set; }
public Guid? UpdatedBy { get; set; }
public DateTime UpdatedAt { get; set; }
public Document? Parent { get; set; }
public List<Document> Children { get; set; } = [];
}