初始化项目
This commit is contained in:
44
Models/ModelItems/DbLog.cs
Normal file
44
Models/ModelItems/DbLog.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
[Table("DbLog")]
|
||||
public class DbLog
|
||||
{
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
|
||||
public string Content { get; set; }
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
|
||||
public string Uid { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)")]
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int Type { get; set; }
|
||||
/// <param name="type"> 0 新增 1 更新 2 删除</param>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", IsNullable = true)]
|
||||
|
||||
public string Ip { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
|
||||
public string Client { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(150)", IsNullable = true)]
|
||||
|
||||
public string location { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user