Add project files.
This commit is contained in:
39
Core.Blueprint.Mongo/Contracts/IDocument.cs
Normal file
39
Core.Blueprint.Mongo/Contracts/IDocument.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user