using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace  Models
{
    /// <summary>
    /// RCU 连接信息
    /// </summary>
    [Table("TBL_RCU_CONN_INFO")]
    public class TBL_RCU_CONN_INFO
    {
        /// <summary>
        /// RCU_INFO_CONN_ID 主键id
        /// </summary>
        [Key, Column(TypeName = "int"), Comment("RCU_INFO_CONN_ID,自增长"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int RCU_INFO_CONN_ID { get; set; }
        /// <summary>
        /// RCU_ID TBL_RCU_BASIC_INFO表MAC
        /// </summary>
        [Column(TypeName = "nvarchar(50)"), Comment("RCU_BASIC_INFO表MAC ")]
        public string MAC { get; set; }


        /// <summary>
        /// 在线状态  0 不在 1在
        /// </summary>
        [Column(TypeName = "int"), Comment("是否在线 0 不在 1在")]
        public int ONLINE_SATATUS { get; set; } = 0;
        /// <summary>
        /// 公网IP   
        /// </summary>
        [Column(TypeName = "nvarchar(50)"), Comment("公网IP")]
        public string PUBLIC_IP { get; set; }

        /// <summary>
        /// 内网IP   
        /// </summary>
        [Column(TypeName = "nvarchar(50)"), Comment("内网IP")]
        public string INTEANL_IP { get; set; }

        /// <summary>
        /// UDP端口   
        /// </summary>
        [Column(TypeName = "nvarchar(50)"), Comment("UDP端口")]
        public string UDP_PORT { get; set; }

        /// <summary>
        /// 公网端口   
        /// </summary>
        [Column(TypeName = "nvarchar(50)"), Comment("公网端口")]
        public string PUBLIC_PORT { get; set; }


        /// <summary>
        /// 记录最后一次通讯时间
        /// </summary>
        [Column(TypeName = "datetime"), Comment("记录最后一次通讯时间")]
        public DateTime? COMM_TIMEMARK { get; set; }


        /// <summary>
        /// 记录更新时间
        /// </summary>
        [Column(TypeName = "datetime"), Comment("记录更新时间")]
        public DateTime? UPDATE_TIMEMARK { get; set; }
    }
}
