using SQLite;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FLY.OBJComponents.Server.Model
{
///
/// 异常记录
///
[Table("Error")]
public class Db_Error:IDbBase
{
[Key]
[Index]
[PropertyIndex(0)]
public Int64 ID { get; set; }
///
/// 发生的时间
///
[Time]//时间标记,用于删除数据 KeepDBSize
[Index]
[PropertyIndex(1)]
public DateTime Time { get; set; }
///
/// 异常代码
///
[PropertyIndex(2)]
public int ErrCode { get; set; }
///
/// true=异常是发生了,false=异常关闭
///
[PropertyIndex(3)]
public bool IsOn { get; set; }
///
/// 异常描述
///
[PropertyIndex(4)]
public string Descrption { get; set; }
///
/// 附加信息
///
[PropertyIndex(5)]
public string Accessory { get; set; }
}
}