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.
69 lines
1.8 KiB
69 lines
1.8 KiB
// ==========================================================================
|
|
// MongoAssetEntity.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using Squidex.Domain.Apps.Read.Assets;
|
|
using Squidex.Infrastructure;
|
|
using Squidex.Infrastructure.MongoDb;
|
|
|
|
namespace Squidex.Domain.Apps.Read.MongoDb.Assets
|
|
{
|
|
public sealed class MongoAssetEntity :
|
|
MongoEntity,
|
|
IAssetEntity,
|
|
IUpdateableEntityWithVersion,
|
|
IUpdateableEntityWithCreatedBy,
|
|
IUpdateableEntityWithLastModifiedBy,
|
|
IUpdateableEntityWithAppRef
|
|
{
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public string MimeType { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public string FileName { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public long FileSize { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public long FileVersion { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public bool IsImage { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public long Version { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public int? PixelWidth { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public int? PixelHeight { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public Guid AppId { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public RefToken CreatedBy { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public RefToken LastModifiedBy { get; set; }
|
|
}
|
|
}
|
|
|