// iyixiGames.Domain/Entities/Permission.cs
using System;
using System.Collections.Generic;

namespace iyixiGames.Domain.Entities
{
    public class Permission
    {
        public int Id { get; set; } // 权限ID

        public string Name { get; set; } = string.Empty; // 权限名称，例如 "ViewUsers", "EditProducts", "DeleteOrders"

        public string Description { get; set; } = string.Empty; // 权限描述

        // 导航属性：一个权限可以属于多个角色
        public ICollection<RolePermission> RolePermissions { get; set; } = new List<RolePermission>();
    }
}