39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using Core.Blueprint.Mongo;
|
|
|
|
public interface IDocument
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the MongoDB ObjectId for the document.
|
|
/// </summary>
|
|
string _Id { get; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a unique identifier for the document, represented as a string (GUID).
|
|
/// </summary>
|
|
string Id { get; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the timestamp of when the document was created.
|
|
/// </summary>
|
|
DateTime CreatedAt { get; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the user or system who created the document.
|
|
/// </summary>
|
|
string? CreatedBy { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the timestamp of when the document was last updated.
|
|
/// </summary>
|
|
DateTime? UpdatedAt { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the user or system who last updated the document.
|
|
/// </summary>
|
|
string? UpdatedBy { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the status of the document.
|
|
/// </summary>
|
|
StatusEnum? Status { get; set; }
|
|
} |