using EasyTemplate.Tool.Entity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace ZhonTai.Admin.Contracts.Domain.VehicleTerminal.Company
{
    /// <summary>
    /// 公司卡限制规则表
    /// </summary>
    [SugarTable(null, "公司卡限制规则表")]
    public class CompanyCardRuleEntity : EntityBaseLite
    {
        /// <summary>
        /// 规则ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 所属站点ID
        /// </summary>
        public long? SiteId { get; set; }

        /// <summary>
        /// 公司账户ID
        /// </summary>
        public long? CompanyAccountId { get; set; }

        /// <summary>
        /// 用户账户ID
        /// </summary>
        public long? UserAccountId { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        public string CardNumber { get; set; }

        /// <summary>
        /// 规则与卡关系表ID
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public long? RuleCardRelationId { get; set; }

        /// <summary>
        /// 可用开始时间
        /// </summary>
        public DateTime? ValidStartTime { get; set; }

        /// <summary>
        /// 可用结束时间
        /// </summary>
        public DateTime? ValidEndTime { get; set; }

        /// <summary>
        /// 允许的油品
        /// </summary>
        public string OilProducts { get; set; }

        /// <summary>
        /// 单次消费金额上限
        /// </summary>
        public decimal? SingleAmountLimit { get; set; }

        /// <summary>
        /// 累计消费金额上限
        /// </summary>
        public decimal? TotalAmountLimit { get; set; }

        /// <summary>
        /// 累计消费次数上限
        /// </summary>
        public int? TotalCountLimit { get; set; }

        /// <summary>
        /// 每日允许加油次数
        /// </summary>
        public int? RefuelTimesPerUse { get; set; }

        /// <summary>
        /// 每日消费金额上限
        /// </summary>
        public decimal? DailyAmountLimit { get; set; }

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

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

        /// <summary>
        /// 允许使用距离
        /// </summary>
        public decimal? UsageDistance { get; set; }

    }
}
