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.
28 lines
793 B
28 lines
793 B
// ==========================================================================
|
|
// MongoRole.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace Squidex.Domain.Users.MongoDb
|
|
{
|
|
public sealed class MongoRole : IRole
|
|
{
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
[BsonElement]
|
|
public string Id { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public string Name { get; set; }
|
|
|
|
[BsonRequired]
|
|
[BsonElement]
|
|
public string NormalizedName { get; set; }
|
|
}
|
|
}
|
|
|