using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Models.ModelItems { #region 应用域表 [Table("ApplicationDomain")] public class ApplicationDomain { //[Key] //[DatabaseGenerated(DatabaseGeneratedOption.Identity) [SugarColumn(IsIdentity = true, IsPrimaryKey = true)] public int Id { get; set; } //[Required] /// /// 应用名 /// /// [SugarColumn(ColumnDataType = "varchar(50)")] public string AppName { get; set; } /// /// 说明 /// /// [SugarColumn(ColumnDataType = "varchar(255)", IsNullable =true)] public string Desc { get; set; } /// /// 创建时间 /// /// [SugarColumn(ColumnDataType = "datetime(3)")] public DateTime CreateTime { get; set; } = DateTime.Now; [SugarColumn(ColumnDataType = "int")] //[DefaultValue("0"), Range(0, 2)] public int IsValid { get; set; } = 0; [SugarColumn(ColumnDataType = "int")] public int DowSum { get; set; } = 0; [SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true,DefaultValue = "系统")] public string CreatedBy { get; set; } = "系统"; //关联网址 [SugarColumn(ColumnDataType = "varchar(120)", IsNullable = true)] public string WebSite { get; set; } = null; //类型 [SugarColumn(ColumnDataType = "int",IsNullable =true)] public int AppType { get; set; } = 0; [SugarColumn(ColumnDataType = "varchar(120)", IsNullable = true)] public string Version { get; set; } = null; [SugarColumn(ColumnDataType = "varchar(50)", IsNullable = true)] public string Icon { get; set; } = null; [SugarColumn(ColumnDataType = "datetime(3)",IsNullable =true)] public DateTime ReleaseDate { get; set; } = DateTime.Now; } #endregion }