45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
|
|
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; }
|
|||
|
|
}
|
|||
|
|
}
|