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

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

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

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