mo_crm_customer.cs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. using Business.Core.Attributes;
  2. using Bussiness.MongoModel;
  3. using Microsoft.EntityFrameworkCore;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. namespace Bussiness.MongoModel.SystemData
  7. {
  8. /// <summary>
  9. /// 客户
  10. /// </summary>
  11. [Comment("客户")]
  12. [CollectionName("dopbase", "mo_crm_customer")]
  13. public class mo_crm_customer:MoBaseEntity
  14. {
  15. ///// <summary>
  16. ///// 客户主键id
  17. ///// </summary>
  18. //[Key]
  19. //[Comment("客户主键id")]
  20. //public long customer_id { get; set; }
  21. /// <summary>
  22. /// 客户编号
  23. /// </summary>
  24. [StringLength(80)]
  25. [Comment("客户编号")]
  26. public string? customer_no { get; set; }
  27. /// <summary>
  28. /// 客户名称
  29. /// </summary>
  30. [StringLength(255)]
  31. [Comment("客户名称")]
  32. public string? customer_name { get; set; }
  33. /// <summary>
  34. /// 客户级别
  35. /// </summary>
  36. [StringLength(255)]
  37. [Comment("客户级别")]
  38. public string? customer_level { get; set; }
  39. /// <summary>
  40. /// 手机号码
  41. /// </summary>
  42. [StringLength(80)]
  43. [Comment("手机号码")]
  44. public string? mobile { get; set; }
  45. /// <summary>
  46. /// 电话号码
  47. /// </summary>
  48. [StringLength(80)]
  49. [Comment("电话号码")]
  50. public string? telephone { get; set; }
  51. /// <summary>
  52. /// 邮件地址
  53. /// </summary>
  54. [StringLength(80)]
  55. [Comment("邮件地址")]
  56. public string? email { get; set; }
  57. /// <summary>
  58. /// 联系人
  59. /// </summary>
  60. [StringLength(80)]
  61. [Comment("联系人")]
  62. public string? contact { get; set; }
  63. /// <summary>
  64. /// 邮政编码
  65. /// </summary>
  66. [StringLength(80)]
  67. [Comment("邮政编码")]
  68. public string? post_code { get; set; }
  69. /// <summary>
  70. /// 国别地区
  71. /// </summary>
  72. [StringLength(255)]
  73. [Comment("国别地区")]
  74. public string? country { get; set; }
  75. /// <summary>
  76. /// 省份
  77. /// </summary>
  78. [StringLength(255)]
  79. [Comment("省份")]
  80. public string? province { get; set; }
  81. /// <summary>
  82. /// 城市
  83. /// </summary>
  84. [StringLength(255)]
  85. [Comment("城市")]
  86. public string? city { get; set; }
  87. /// <summary>
  88. /// 区
  89. /// </summary>
  90. [StringLength(255)]
  91. [Comment("区")]
  92. public string? region { get; set; }
  93. /// <summary>
  94. /// 地址
  95. /// </summary>
  96. [StringLength(255)]
  97. [Comment("地址")]
  98. public string? address { get; set; }
  99. /// <summary>
  100. /// 销售模式
  101. /// </summary>
  102. [StringLength(255)]
  103. [Comment("销售模式")]
  104. public string? sale_mode { get; set; }
  105. /// <summary>
  106. /// 客户简称
  107. /// </summary>
  108. [StringLength(255)]
  109. [Comment("客户简称")]
  110. public string? short_name { get; set; }
  111. /// <summary>
  112. /// 客户简码
  113. /// </summary>
  114. [StringLength(255)]
  115. [Comment("客户简码")]
  116. public string? short_number { get; set; }
  117. /// <summary>
  118. /// 状态
  119. /// </summary>
  120. [StringLength(80)]
  121. [Comment("状态")]
  122. public string? state { get; set; }
  123. /// <summary>
  124. /// 增值税率
  125. /// </summary>
  126. [Precision(18,10)]
  127. [Comment("增值税率")]
  128. public decimal? value_add_rate { get; set; }
  129. /// <summary>
  130. /// 默认运输提前期_天
  131. /// </summary>
  132. [Required]
  133. [Comment("默认运输提前期_天")]
  134. public int? carrying_aos { get; set; }
  135. /// <summary>
  136. /// 法人代表
  137. /// </summary>
  138. [StringLength(255)]
  139. [Comment("法人代表")]
  140. public string? corperate { get; set; }
  141. /// <summary>
  142. /// 结算币种
  143. /// </summary>
  144. [StringLength(80)]
  145. [Comment("结算币种")]
  146. public string? currency { get; set; }
  147. /// <summary>
  148. /// 专营业务员
  149. /// </summary>
  150. [StringLength(80)]
  151. [Comment("专营业务员")]
  152. public string? employee_name { get; set; }
  153. /// <summary>
  154. /// 专营业务员_工号
  155. /// </summary>
  156. [StringLength(80)]
  157. [Comment("专营业务员_工号")]
  158. public string? employee_no { get; set; }
  159. /// <summary>
  160. /// 操作时间
  161. /// </summary>
  162. [Comment("操作时间")]
  163. public DateTime? op_time { get; set; }
  164. /// <summary>
  165. /// 客户类别编码
  166. /// </summary>
  167. [StringLength(255)]
  168. [Comment("客户类别编码")]
  169. public string? cust_type_number { get; set; }
  170. /// <summary>
  171. /// 客户类别
  172. /// </summary>
  173. [StringLength(255)]
  174. [Comment("客户类别")]
  175. public string? cust_type { get; set; }
  176. /// <summary>
  177. /// 客户分组编号
  178. /// </summary>
  179. [StringLength(255)]
  180. [Comment("客户分组编号")]
  181. public string? cust_group_number { get; set; }
  182. /// <summary>
  183. /// 客户分组名称
  184. /// </summary>
  185. [StringLength(255)]
  186. [Comment("客户分组名称")]
  187. public string? cust_group_name { get; set; }
  188. }
  189. }