mirror of https://github.com/Squidex/squidex.git
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.
40 lines
1.1 KiB
40 lines
1.1 KiB
// ==========================================================================
|
|
// MongoAssetStatsEntity.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System;
|
|
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using Squidex.Read.Assets;
|
|
|
|
namespace Squidex.Read.MongoDb.Assets
|
|
{
|
|
public sealed class MongoAssetStatsEntity : IAssetStatsEntity
|
|
{
|
|
[BsonId]
|
|
[BsonElement]
|
|
[BsonRepresentation(BsonType.String)]
|
|
public string Id { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
[BsonDateTimeOptions(DateOnly = true)]
|
|
public DateTime Date { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public Guid AppId { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public long TotalSize { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public long TotalCount { get; set; }
|
|
}
|
|
}
|
|
|