Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
784 B

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using MongoDB.Bson.Serialization.Attributes;
using NodaTime;
namespace Squidex.Domain.Apps.Entities.MongoDb;
internal sealed class MongoCountEntity
{
[BsonId]
[BsonElement("_id")]
public string Key { get; set; }
[BsonRequired]
[BsonElement(nameof(Count))]
public long Count { get; set; }
[BsonRequired]
[BsonElement(nameof(Created))]
public Instant Created { get; set; }
}