using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAuth.Repository.Domain.FireManagement
{
    [SplitTable(SplitType.Month)]
    [SugarTable("fm_userpointhistory_{year}{month}{day}")]
    public class FmUserPointHistory
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }

        /// <summary>
        /// CreateTime
        /// </summary>
        [SplitField]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// Lng
        /// </summary>
        public string Lng { get; set; }

        /// <summary>
        /// Lat
        /// </summary>
        public string Lat { get; set; }

        /// <summary>
        /// CreateId
        /// </summary>
        public long CreateId { get; set; }
        /// <summary>
        /// 是否在巡查范围之内0-不是 1-是
        /// </summary>
        public int Intype { get; set; }
        /// <summary>
        /// 和上一坐标点的距离
        /// </summary>
        public double Distance { get; set; }
    }
}
