61 lines
1.8 KiB
C#
61 lines
1.8 KiB
C#
|
|
using SqlSugar;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace Models.ModelItems
|
|||
|
|
{
|
|||
|
|
//[Table("UserAutho")]
|
|||
|
|
public class UserAuthoes
|
|||
|
|
{
|
|||
|
|
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|||
|
|
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
|||
|
|
public int Id { get; set; }
|
|||
|
|
//[ForeignKey("UserId")]
|
|||
|
|
//public UserInfo user { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 用户ID
|
|||
|
|
/// </summary>
|
|||
|
|
//[Key,Column(Order = 1)]
|
|||
|
|
[SugarColumn(ColumnDataType = "int", IndexGroupNameList = new[] { "UserId_key" }) ]
|
|||
|
|
public int UserId { get; set; }
|
|||
|
|
//[ForeignKey("AuthorityId")]
|
|||
|
|
//public Authority authority { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 权限ID
|
|||
|
|
/// </summary>
|
|||
|
|
//[Key,Column(Order =2)]
|
|||
|
|
[SugarColumn(ColumnDataType = "int")]
|
|||
|
|
|
|||
|
|
|
|||
|
|
public int AuthorityId { get; set; }
|
|||
|
|
//[ForeignKey("AuthotypeId")]
|
|||
|
|
//public AuthoStatusType authoStatusType { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 权限状态
|
|||
|
|
/// </summary>
|
|||
|
|
///
|
|||
|
|
[SugarColumn(ColumnDataType = "int")]
|
|||
|
|
public int AuthotypeId { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 创建时间
|
|||
|
|
/// </summary>
|
|||
|
|
///
|
|||
|
|
|
|||
|
|
[SugarColumn(ColumnDataType = "varchar(255)")]
|
|||
|
|
|
|||
|
|
public string CreateTime { get; set; } = DateTime.Now.ToString("g");
|
|||
|
|
//[Key,Column(Order = 3)]
|
|||
|
|
public int HotelId { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 创建人
|
|||
|
|
/// </summary>
|
|||
|
|
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true, DefaultValue = "系统")]
|
|||
|
|
public string CreatedBy { get; set; } = "系统";
|
|||
|
|
}
|
|||
|
|
}
|