using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SqlSugar;
using WIDESEAWCS_Core.DB.Models;
using WIDESEAWCS_Core.Tenants;
namespace WIDESEAWCS_Model.Models
{
[SugarTable, MultiTenant]
public class Sys_Log
{
///
/// 主键
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
public int Id { get; set; }
///
/// 开始时间
///
[SugarColumn(IsNullable = true, ColumnDescription = "开始时间")]
public DateTime? BeginDate { get; set; }
///
/// 时长
///
[SugarColumn(IsNullable = true, ColumnDescription = "时长")]
public int? ElapsedTime { get; set; }
///
/// 结束时间
///
[SugarColumn(IsNullable = true, ColumnDescription = "结束时间")]
public DateTime EndDate { get; set; }
///
/// 日志类型
///
//[SugarColumn(IsNullable = true, ColumnDescription = "日志类型")]
//public DateTime LogType { get; set; }
///
/// 请求参数
///
[SugarColumn(IsNullable = true, Length = int.MaxValue, ColumnDescription = "请求参数")]
public string RequestParam { get; set; }
///
/// 响应参数
///
[SugarColumn(IsNullable = true, Length = int.MaxValue, ColumnDescription = "响应参数")]
public string ResponseParam { get; set; }
///
/// 响应状态
///
[SugarColumn(IsNullable = true, ColumnDescription = "响应状态")]
public int? Success { get; set; }
///
/// 请求地址
///
[SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "请求地址")]
public string Url { get; set; }
///
/// 用户IP
///
[SugarColumn(IsNullable = true, Length = 20, ColumnDescription = "用户IP")]
public string UserIP { get; set; }
///
/// 用户名称
///
[SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "用户名称")]
public string? UserName { get; set; }
///
/// 用户主键
///
[SugarColumn(IsNullable = true, ColumnDescription = "用户主键")]
public int? UserId { get; set; }
}
}