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")] /// /// 应用ID /// //[Key, Column(Order = 1)] [SugarColumn(ColumnDataType ="int")] public int AppId { get; set; } //[ForeignKey("AuthorityId")] //public Authority authority { get; set; } /// /// 权限ID /// [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 }