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.
 
 
 
 
 

68 lines
1.8 KiB

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using NodaTime;
using Squidex.Domain.Apps.Core.Contents;
using Squidex.Domain.Apps.Core.Schemas;
using Squidex.Infrastructure;
namespace Squidex.Domain.Apps.Entities.Contents
{
public sealed class ContentEntity : IEnrichedContentEntity
{
public DomainId Id { get; set; }
public NamedId<DomainId> AppId { get; set; }
public NamedId<DomainId> SchemaId { get; set; }
public long Version { get; set; }
public Instant Created { get; set; }
public Instant LastModified { get; set; }
public RefToken CreatedBy { get; set; }
public RefToken LastModifiedBy { get; set; }
public ContentData Data { get; set; }
public ContentData? ReferenceData { get; set; }
public ScheduleJob? ScheduleJob { get; set; }
public Status? NewStatus { get; set; }
public Status Status { get; set; }
public StatusInfo[]? NextStatuses { get; set; }
public bool CanUpdate { get; set; }
public bool IsSingleton { get; set; }
public bool IsDeleted { get; set; }
public string SchemaDisplayName { get; set; }
public string StatusColor { get; set; }
public string? NewStatusColor { get; set; }
public string? ScheduledStatusColor { get; set; }
public string? EditToken { get; set; }
public RootField[]? ReferenceFields { get; set; }
public DomainId UniqueId
{
get => DomainId.Combine(AppId, Id);
}
}
}