Metrolog/Metrolog-API/Models/RoleModel.cs
2025-02-15 20:43:28 +01:00

24 lines
513 B
C#

using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
namespace Metrolog_API.Models
{
public class RoleModel
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; } = string.Empty;
[BsonElement("Default")]
public bool Default { get; set; }
[BsonElement("Name")]
public string Name { get; set; }
[BsonElement("Description")]
public string Description { get; set; }
[BsonElement("Permissions")]
public List<string> Permissions { get; set; }
}
}