//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行时版本:4.0.30319.42000
//     Website: http://www.freesql.net
//     对此文件的更改可能会导致不正确的行为，并且如果
//     重新生成代码，这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace XHD.Core.Models {

	[JsonObject(MemberSerialization.OptIn)]
	public partial class CRM_Customer {

		[JsonProperty, Column(DbType = "varchar(50)", IsPrimary = true)]
		public string id { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(50)")]
		public string City_id { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(50)")]
		public string create_id { get; set; } = string.Empty;

		[JsonProperty]
		public DateTime? create_time { get; set; }

		[JsonProperty, Column(DbType = "varchar(250)")]
		public string cus_add { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(MAX)")]
		public string cus_extend { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(250)")]
		public string cus_fax { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(50)")]
		public string cus_industry_id { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(50)")]
		public string cus_level_id { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(250)")]
		public string cus_name { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(50)")]
		public string cus_source_id { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(250)")]
		public string cus_tel { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(50)")]
		public string cus_type_id { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(250)")]
		public string cus_website { get; set; } = string.Empty;

		[JsonProperty]
		public DateTime? Delete_time { get; set; }

		[JsonProperty, Column(DbType = "varchar(4000)")]
		public string DesCripe { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(50)")]
		public string emp_id { get; set; } = string.Empty;

		[JsonProperty]
		public int? isDelete { get; set; }

		[JsonProperty]
		public int? isPrivate { get; set; }

		[JsonProperty]
		public DateTime? lastfollow { get; set; }

		[JsonProperty, Column(DbType = "varchar(50)")]
		public string Provinces_id { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(4000)")]
		public string Remarks { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(250)")]
		public string Serialnumber { get; set; } = string.Empty;

		[JsonProperty, Column(DbType = "varchar(50)")]
		public string xy { get; set; } = string.Empty;

		[JsonProperty]
		public Sys_Param cus_industry { get; set; }

		[JsonProperty]
		public Sys_Param cus_type { get; set; }

		[JsonProperty]
		public Sys_Param cus_level { get; set; }

		[JsonProperty]
		public Sys_Param cus_source { get; set; }

		[JsonProperty]
		public Sys_Param_Provinces Provinces { get; set; }

		[JsonProperty]
		public Sys_Param_City City { get; set; }

		[JsonProperty]
		public hr_employee Employee { get; set; }

		[JsonProperty]
		public hr_employee Creater { get; set; }

        [JsonProperty, Column(DbType = "decimal(18,10)")]
        public decimal x { get; set; }

        [JsonProperty, Column(DbType = "decimal(18,10)")]
        public decimal y { get; set; }


    }

}
