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.
41 lines
1.1 KiB
41 lines
1.1 KiB
// ==========================================================================
|
|
// MongoRuleEntity.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using Squidex.Domain.Apps.Core.Rules;
|
|
using Squidex.Domain.Apps.Read.Rules;
|
|
using Squidex.Infrastructure;
|
|
using Squidex.Infrastructure.MongoDb;
|
|
|
|
namespace Squidex.Domain.Apps.Read.MongoDb.Rules
|
|
{
|
|
public class MongoRuleEntity : MongoEntity, IRuleEntity
|
|
{
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public Guid AppId { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public RefToken CreatedBy { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public RefToken LastModifiedBy { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public long Version { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
[BsonJson]
|
|
public Rule Rule { get; set; }
|
|
}
|
|
}
|
|
|