SysCity.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. namespace Model
  2. {
  3. /// <summary>
  4. /// 城市表 sys_city
  5. /// </summary>
  6. [SugarTable("sys_city", "城市表")]
  7. [Tenant("0")]
  8. public class SysCity
  9. {
  10. /// <summary>
  11. ///
  12. /// </summary>
  13. [SugarColumn(ColumnDescription = "", ColumnName = "id")]
  14. public int Id { get; set; }
  15. /// <summary>
  16. /// 城市id
  17. /// </summary>
  18. [SugarColumn(ColumnDescription = "城市id", ColumnName = "city_id")]
  19. public int CityId { get; set; }
  20. /// <summary>
  21. /// 省市级别
  22. /// </summary>
  23. [SugarColumn(ColumnDescription = "省市级别", ColumnName = "level")]
  24. public int Level { get; set; }
  25. /// <summary>
  26. /// 父级id
  27. /// </summary>
  28. [SugarColumn(ColumnDescription = "父级id", ColumnName = "parent_id")]
  29. public int ParentId { get; set; }
  30. /// <summary>
  31. /// 区号
  32. /// </summary>
  33. [SugarColumn(ColumnDescription = "区号", Length = 30, ColumnName = "area_code")]
  34. public string AreaCode { get; set; }
  35. /// <summary>
  36. /// 名称
  37. /// </summary>
  38. [SugarColumn(ColumnDescription = "名称", Length = 100, ColumnName = "name")]
  39. public string Name { get; set; }
  40. /// <summary>
  41. /// 合并名称
  42. /// </summary>
  43. [SugarColumn(ColumnDescription = "合并名称", Length = 255, ColumnName = "merger_name")]
  44. public string MergerName { get; set; }
  45. /// <summary>
  46. /// 经度
  47. /// </summary>
  48. [SugarColumn(ColumnDescription = "经度", Length = 50, ColumnName = "lng")]
  49. public string Lng { get; set; }
  50. /// <summary>
  51. /// 纬度
  52. /// </summary>
  53. [SugarColumn(ColumnDescription = "纬度", Length = 50, ColumnName = "lat")]
  54. public string Lat { get; set; }
  55. /// <summary>
  56. /// 是否展示
  57. /// </summary>
  58. [SugarColumn(ColumnDescription = "是否展示", ColumnName = "is_show")]
  59. public string IsShow { get; set; }
  60. /// <summary>
  61. /// 创建时间
  62. /// </summary>
  63. [SugarColumn(ColumnDescription = "创建时间", ColumnName = "create_time")]
  64. public string CreateTime { get; set; }
  65. /// <summary>
  66. /// 更新时间
  67. /// </summary>
  68. [SugarColumn(ColumnDescription = "更新时间", ColumnName = "update_time")]
  69. public string UpdateTime { get; set; }
  70. }
  71. }