|
|
@ -24,13 +24,45 @@ namespace Squidex.Domain.Apps.Entities.MongoDb.Contents |
|
|
private NamedContentData data; |
|
|
private NamedContentData data; |
|
|
|
|
|
|
|
|
[BsonId] |
|
|
[BsonId] |
|
|
|
|
|
[BsonRequired] |
|
|
[BsonElement] |
|
|
[BsonElement] |
|
|
public string DocumentId { get; set; } |
|
|
public string DocumentId { get; set; } |
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
[BsonRequired] |
|
|
[BsonElement] |
|
|
[BsonElement("id")] |
|
|
|
|
|
[BsonRepresentation(BsonType.String)] |
|
|
public Guid Id { get; set; } |
|
|
public Guid Id { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
|
|
|
[BsonElement("ai")] |
|
|
|
|
|
[BsonRepresentation(BsonType.String)] |
|
|
|
|
|
public Guid AppId { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
|
|
|
[BsonElement("si")] |
|
|
|
|
|
[BsonRepresentation(BsonType.String)] |
|
|
|
|
|
public Guid SchemaId { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
|
|
|
[BsonElement("rf")] |
|
|
|
|
|
[BsonRepresentation(BsonType.String)] |
|
|
|
|
|
public List<Guid> ReferencedIds { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
|
|
|
[BsonElement("rd")] |
|
|
|
|
|
[BsonRepresentation(BsonType.String)] |
|
|
|
|
|
public List<Guid> ReferencedIdsDeleted { get; set; } = new List<Guid>(); |
|
|
|
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
|
|
|
[BsonElement("st")] |
|
|
|
|
|
[BsonRepresentation(BsonType.String)] |
|
|
|
|
|
public Status Status { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
|
|
|
[BsonElement("do")] |
|
|
|
|
|
[BsonJson] |
|
|
|
|
|
public IdContentData DataByIds { get; set; } |
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
[BsonRequired] |
|
|
[BsonElement("ct")] |
|
|
[BsonElement("ct")] |
|
|
public Instant Created { get; set; } |
|
|
public Instant Created { get; set; } |
|
|
@ -47,14 +79,6 @@ namespace Squidex.Domain.Apps.Entities.MongoDb.Contents |
|
|
[BsonElement("vs")] |
|
|
[BsonElement("vs")] |
|
|
public long Version { get; set; } |
|
|
public long Version { get; set; } |
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
|
|
|
[BsonElement("ai")] |
|
|
|
|
|
public Guid AppId { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
|
|
|
[BsonElement("si")] |
|
|
|
|
|
public Guid SchemaId { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
[BsonRequired] |
|
|
[BsonElement("cb")] |
|
|
[BsonElement("cb")] |
|
|
public RefToken CreatedBy { get; set; } |
|
|
public RefToken CreatedBy { get; set; } |
|
|
@ -63,28 +87,10 @@ namespace Squidex.Domain.Apps.Entities.MongoDb.Contents |
|
|
[BsonElement("mb")] |
|
|
[BsonElement("mb")] |
|
|
public RefToken LastModifiedBy { get; set; } |
|
|
public RefToken LastModifiedBy { get; set; } |
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
|
|
|
[BsonElement("rf")] |
|
|
|
|
|
public List<Guid> ReferencedIds { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
|
|
|
[BsonElement("rd")] |
|
|
|
|
|
public List<Guid> ReferencedIdsDeleted { get; set; } = new List<Guid>(); |
|
|
|
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
[BsonRequired] |
|
|
[BsonElement("lt")] |
|
|
[BsonElement("lt")] |
|
|
public bool IsLatest { get; set; } |
|
|
public bool IsLatest { get; set; } |
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
|
|
|
[BsonElement("st")] |
|
|
|
|
|
[BsonRepresentation(BsonType.String)] |
|
|
|
|
|
public Status Status { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[BsonRequired] |
|
|
|
|
|
[BsonElement("do")] |
|
|
|
|
|
[BsonJson] |
|
|
|
|
|
public IdContentData DataByIds { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[BsonIgnore] |
|
|
[BsonIgnore] |
|
|
public NamedContentData Data |
|
|
public NamedContentData Data |
|
|
{ |
|
|
{ |
|
|
|