65 lines
1.2 KiB
C#
65 lines
1.2 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
|
|||
|
|
{
|
|||
|
|
#region 应用权限表
|
|||
|
|
[Table("AppAutho")]
|
|||
|
|
public class AppAutho
|
|||
|
|
{
|
|||
|
|
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
|||
|
|
public int Id { get; set; }
|
|||
|
|
//[ForeignKey("AppId")]
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 应用ID
|
|||
|
|
/// </summary>
|
|||
|
|
//[Key, Column(Order = 1)]
|
|||
|
|
|
|||
|
|
|
|||
|
|
[SugarColumn(ColumnDataType ="int")]
|
|||
|
|
public int AppId { get; set; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
//[ForeignKey("AuthorityId")]
|
|||
|
|
|
|||
|
|
|
|||
|
|
//public Authority authority { get; set; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 权限ID
|
|||
|
|
/// </summary>
|
|||
|
|
[SugarColumn(ColumnDataType = "int")]
|
|||
|
|
///
|
|||
|
|
//[Key, Column(Order = 2)]
|
|||
|
|
public int AuthorityId { get; set; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
[SugarColumn(ColumnDataType = "datetime(3)")]
|
|||
|
|
|
|||
|
|
public DateTime CreateTime { get; set; } = DateTime.Now;
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true ,DefaultValue = "系统")]
|
|||
|
|
public string CreatedBy { get; set; } = "系统";
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
}
|