// iyixiGames.Domain/Entities/RolePermission.cs
using System;

namespace iyixiGames.Domain.Entities
{
    public class RolePermission
    {
        public int RoleId { get; set; }
        public Role Role { get; set; } = default!; // 导航属性到 Role 实体

        public int PermissionId { get; set; }
        public Permission Permission { get; set; } = default!; // 导航属性到 Permission 实体

        public DateTime AssignedAt { get; set; } = DateTime.UtcNow; // 分配时间
    }
}