using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Numerics;

namespace Edge.Core.Domain.FccStationInfo
{
    [Table("qr_station_info")]
    public class FccStationInfo
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }

        /// <summary>
        /// 云端站点 id
        /// </summary>
        public string BuildId { get; set; }

        /// <summary>
        /// 客户端id
        /// </summary>
        public string SecretId { get; set; }

        /// <summary>
        /// 与云端加密的 key
        /// </summary>
        public string AcessKey { get; set; }

        /// <summary>
        /// 站点名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public decimal Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        public decimal Latitude { get; set; }

        /// <summary>
        /// 小程序链接地址
        /// </summary>
        public string SmallProgram { get; set; }

        /// <summary>
        /// 云端地址
        /// </summary>
        public string CloudService { get; set; }

        /// <summary>
        /// 云端  MQTT 地址
        /// </summary>
        public string MqttService { get; set; }

        /// <summary>
        /// icard 数据库连接地址
        /// </summary>
        public string IcardService { get; set; }

        /// <summary>
        /// 本地 fcc 与 fcc 页面 webSocket 端口
        /// </summary>
        public string WebSocketPort { get; set; }

        public ICollection<FccTankInfo.FccTankInfo> FccTankInfo { get; set; }
    }
}
