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

namespace ZhonTai.Admin.Contracts.Domain.VehicleTerminal.ElectronicAccount
{
    /// <summary>
    /// 电子账户表
    /// </summary>
    [SugarTable(null, "电子账户表")]
    public class ElectronicAccountEntity : EntityBaseLite
    {
        /// <summary>
        /// 账户ID
        /// </summary>
        public long Id { get; set; }

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

        /// <summary>
        /// 用户ID（关联用户表）
        /// </summary>
        public long? UserId { get; set; }

        /// <summary>
        /// 账户类型：1-个人账户，2-公司账户
        /// </summary>
        public byte? AccountType { get; set; }
        /// <summary>
        /// 账户编号
        /// </summary>
        public string? AccountNo { get; set; }

        /// <summary>
        /// 账户余额
        /// </summary>
        public decimal? Balance { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime? RegistrationTime { get; set; }

        /// <summary>
        /// 加密编码（用于余额防篡改）
        /// </summary>
        public string IntegrityCode { get; set; }

        /// <summary>
        /// 开票余额
        /// </summary>
        public long? InvoiceBalance { get; set; }

    }
}
