Files
Web_AuthorityManagement_Mvc…/Models/ModelItems/AppAutho.cs

65 lines
1.2 KiB
C#
Raw Normal View History

2025-11-20 09:50:21 +08:00
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
}