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.
 
 
 
 
 

69 lines
1.8 KiB

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using System.Collections.Generic;
using NodaTime;
using Squidex.Domain.Apps.Core.Assets;
using Squidex.Infrastructure;
namespace Squidex.Domain.Apps.Entities.Assets
{
public sealed class AssetEntity : IEnrichedAssetEntity
{
public NamedId<DomainId> AppId { get; set; }
public DomainId Id { get; set; }
public DomainId ParentId { get; set; }
public Instant Created { get; set; }
public Instant LastModified { get; set; }
public RefToken CreatedBy { get; set; }
public RefToken LastModifiedBy { get; set; }
public HashSet<string> Tags { get; set; }
public HashSet<string> TagNames { get; set; }
public long Version { get; set; }
public string FileName { get; set; }
public string FileHash { get; set; }
public string MimeType { get; set; }
public string Slug { get; set; }
public string MetadataText { get; set; }
public long FileSize { get; set; }
public long FileVersion { get; set; }
public bool IsProtected { get; set; }
public bool IsDeleted { get; set; }
public AssetMetadata Metadata { get; set; }
public AssetType Type { get; set; }
public DomainId AssetId
{
get { return Id; }
}
public DomainId UniqueId
{
get { return DomainId.Combine(AppId, Id); }
}
}
}