using SqlSugar;
using System;
using System.Linq;
using System.Text;

namespace OpenAuth.Repository.Domain
{
    ///<summary>
    ///车辆信息表
    ///</summary>
    [SugarTable("mi_vehicle")]
    public partial class MiVehicle
    {
        public MiVehicle()
        {


        }
        /// <summary>
        /// Desc:车辆ID
        /// Default:
        /// Nullable:False
        /// </summary>        
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// Desc:牌照/编号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string LicensePlate { get; set; }

        /// <summary>
        /// Desc:类型
        /// Default:
        /// Nullable:True
        /// </summary>           
        public short? Type { get; set; }

        /// <summary>
        /// Desc:姓名
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Name { get; set; }

        /// <summary>
        /// Desc:身份证号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string IdCard { get; set; }

        /// <summary>
        /// Desc:电话
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Phone { get; set; }

        /// <summary>
        /// Desc:违法上报信息id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string ViolationReportId { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:DateTime.Now
        /// Nullable:True
        /// </summary>           
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        public string TypeName { get; set; }

        /// <summary>
        /// Desc:车辆状态（0未提车，1已申请提车，2已提车）
        /// Default:
        /// Nullable:True
        /// </summary>           
        public short? State { get; set; }

        /// <summary>
        /// Desc:备注(类型为其他时，信息加到这个字段里)
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Remark { get; set; }

        /// <summary>
        /// 导航属性
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(MiVehicleImage.VehicleId))]
        public List<MiVehicleImage> MiVehicleImages { get; set; }
    }
}
