using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Managing.Infrastructure.Databases.MongoDb.Configurations
{
    public abstract class Document : IDocument
    {
        [BsonId]
        public ObjectId Id { get; set; }
        [BsonDateTimeOptions]
        public DateTime CreatedAt => Id.CreationTime;
    }
}
