namespace EVCB_OCPP.Domain.Models.Database
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
[Table("ApiLogEntry")]
public class ApiLogEntry
{
///
/// // The (database) ID for the API log entry.
///
[Key]
public long ApiLogEntryId { get; set; }
///
/// The application that made the request.
///
public string Application { get; set; }
///
/// The user that made the request.
///
public string User { get; set; }
///
/// The machine that made the request.
///
public string Machine { get; set; }
///
/// The IP address that made the request.
///
public string RequestIpAddress { get; set; }
///
/// The request content type.
///
public string RequestContentType { get; set; }
///
/// The request content body.
///
public string RequestContentBody { get; set; }
///
/// The request URI.
///
public string RequestUri { get; set; }
///
/// The request method (GET, POST, etc).
///
public string RequestMethod { get; set; }
///
/// // The request route template.
///
public string RequestRouteTemplate { get; set; }
///
/// // The request route data.
///
public string RequestRouteData { get; set; }
///
/// The request headers.
///
public string RequestHeaders { get; set; }
///
/// // The request timestamp.
///
[Index("IX_RequestTimestamp", IsUnique = false)]
public DateTime? RequestTimestamp { get; set; }
///
/// The response content type.
///
public string ResponseContentType { get; set; }
///
/// The response content body.
///
public string ResponseContentBody { get; set; }
///
/// The response status code.
///
public int? ResponseStatusCode { get; set; }
///
/// The response headers.
///
public string ResponseHeaders { get; set; }
///
/// The response timestamp.
///
public DateTime? ResponseTimestamp { get; set; }
///
/// 從server丟出去的請求
///
public bool IsOutData { get; set; }
///
/// 錯誤訊息
///
public string ErrorMsg { get; set; }
///
/// 錯誤時間
///
public DateTime? ErrorOn { get; set; }
}
}