using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAuth.Repository.Domain
{
    [SugarTable("sys_userrelation")]
    public class SysUserRelation
    {
        #region 实体成员
        /// <summary>
        /// 用户关系主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string UserRelationId { get; set; }
        /// <summary>
        /// 用户主键
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 分类:1-角色2-岗位-3部门
        /// </summary>
        public int? Category { get; set; }
        /// <summary>
        /// 对象主键
        /// </summary>
        public string ObjectId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        #endregion
    }
}
