shopping-assistant-api/ShoppingAssistantApi.Domain/Common/EntityBase.cs
2023-09-22 23:02:20 +03:00

20 lines
449 B
C#

using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace ShoppingAssistantApi.Domain.Common;
public abstract class EntityBase
{
[BsonId]
public ObjectId Id { get; set; }
public ObjectId CreatedById { get; set; }
public DateTime CreatedDateUtc { get; set; }
public bool IsDeleted { get; set; }
public ObjectId? LastModifiedById { get; set; }
public DateTime? LastModifiedDateUtc { get; set; }
}