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 AipGateway.Data.Entities
{
    [Table("TB_AIP_API_CALL_LOG")]
    public class TbAipApiCallLog
    {
        [Key]
        //[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public required Int64 Id { get; set; }
        public required DateTime LogDate { get; set; }
        public required short ApiId { get; set; }
        public required string ApiGuid { get; set; }
        public DateTime? StartedAt { get; set; }
        public DateTime? CompletedAt { get; set; }
        public string? CallIpAddr { get; set; }
        public string? CallResult { get; set; }
        public string? CallMessage { get; set; }
    }
}
