初始化项目
This commit is contained in:
86
Models/ModelItems/ApplicationDomain.cs
Normal file
86
Models/ModelItems/ApplicationDomain.cs
Normal file
@@ -0,0 +1,86 @@
|
||||
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]
|
||||
/// <summary>
|
||||
/// 应用名
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(50)")]
|
||||
public string AppName { get; set; }
|
||||
/// <summary>
|
||||
/// 说明
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable =true)]
|
||||
public string Desc { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
[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
|
||||
}
|
||||
Reference in New Issue
Block a user