using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace EasyTemplate.Tool.Entity.System.VehicleTerminal.CardInfo
{
    /// <summary>
    /// 卡信息表
    /// </summary>
    [SugarTable(null, "卡信息表")]
    public class CardInfoEntity : EntityBaseLite
    {
        /// <summary>
        /// 卡ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 发卡站点ID
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public long? IssueSiteId { get; set; }

        /// <summary>
        /// 卡类型：1-个人卡，2-企业卡，3-员工卡
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public byte? CardType { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string UserName { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string Mobile { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string Password { get; set; }

        /// <summary>
        /// 发卡时间
        /// </summary>
        public DateTime? IssueTime { get; set; }

        /// <summary>
        /// 挂失时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? LossTime { get; set; }

        /// <summary>
        /// 状态：1-正常，2-挂失，3-注销，4-冻结
        /// </summary>
        public byte? Status { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        public string CardNo { get; set; }
        /// <summary>
        /// 账户id
        /// </summary>
        public long? AccountId { get; set; }

    }
}
