初始化项目
This commit is contained in:
64
Models/ModelItems/AppAutho.cs
Normal file
64
Models/ModelItems/AppAutho.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user