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

namespace EasyTemplate.Tool.Entity.System.VehicleTerminal.ElectronicAccount
{
    /// <summary>
    /// 账户余额变动表
    /// </summary>
    [SugarTable(null, "账户余额变动表")]
    public class AccountBalanceChangeEntity : EntityBaseLite
    {
        /// <summary>
        /// ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 交易id
        /// </summary>
        public long? TransactionId { get; set; }

        /// <summary>
        /// 变动金额
        /// </summary>
        public decimal ChangeAmount { get; set; }

        /// <summary>
        /// 变动后余额
        /// </summary>
        public decimal BalanceAfterChange { get; set; }

        /// <summary>
        /// 变动类型，1：充值、2：消费
        /// </summary>
        public int ChangeType { get; set; }

        /// <summary>
        /// 交易时间
        /// </summary>
        public DateTime TransactionTime { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string Description { get; set; }

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

    }
}
