username@email.com
2024-05-29 7a3a4f8012a72f80d8dd62064a76655c803da864
CoreCms.Net.Model/Entities/Distribution/CoreCmsDistribution.cs
@@ -1,25 +1,27 @@
/***********************************************************************
 *            Project: CoreCms
 *        ProjectName: 核心内容管理系统
 *                Web: https://www.corecms.net
 *             Author: 大灰灰
 *              Email: jianweie@163.com
 *         CreateTime: 2021-06-08 22:14:58
 *            Project: baifenBinfa
 *        ProjectName: 百分兵法管理系统
 *                Web: http://chuanyin.com
 *             Author:
 *              Email: 34161541@qq.com
 *         CreateTime: 2024-03-01 22:14:58
 *        Description: 暂无
***********************************************************************/
***********************************************************************/
using Chuanyin.Attribute;
using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace CoreCms.Net.Model.Entities
{
    /// <summary>
    /// 分销商表
    /// 经销商表
    /// </summary>
    [SugarTable("CoreCmsDistribution",TableDescription = "分销商表")]
    [SugarTable("CoreCmsDistribution",TableDescription = "经销商表")]
    [SqlCodeFirst]
    public partial class CoreCmsDistribution
    {
        /// <summary>
        /// 分销商表
        /// 经销商表
        /// </summary>
        public CoreCmsDistribution()
        {
@@ -40,10 +42,10 @@
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 userId { get; set; }
        /// <summary>
        /// 分销商名称
        /// 经销商名称
        /// </summary>
        [Display(Name = "分销商名称")]
        [SugarColumn(ColumnDescription = "分销商名称", IsNullable = true)]
        [Display(Name = "经销商名称")]
        [SugarColumn(ColumnDescription = "经销商名称", IsNullable = true)]
        [StringLength(255, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public System.String name { get; set; }
        /// <summary>
@@ -57,7 +59,7 @@
        /// 手机号
        /// </summary>
        [Display(Name = "手机号")]
        [SugarColumn(ColumnDescription = "手机号", IsNullable = true)]
        [SugarColumn(ColumnDescription = "手机号", IsNullable = false)]
        [StringLength(50, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public System.String mobile { get; set; }
        /// <summary>
@@ -135,5 +137,58 @@
        [SugarColumn(ColumnDescription = "是否删除")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Boolean isDelete { get; set; }
        /********************************************* 增加字段 ************************************/
        /// <summary>
        /// 店铺区域
        /// </summary>
        [Display(Name = "店铺区域")]
        [SugarColumn(ColumnDescription = "店铺区域" , IsNullable = true)]
        public string areaCode { get; set; }
        /// <summary>
        /// 地址详情
        /// </summary>
        [Display(Name = "地址详情")]
        [SugarColumn(ColumnDescription = "地址详情")]
        public string address { get; set; }
        /// <summary>
        /// 年销售额
        /// </summary>
        [Display(Name = "年销售额")]
        [SugarColumn(ColumnDescription = "年销售额" ,IsNullable =true)]
        public decimal? sales { get; set; } = 0;
        /// <summary>
        /// 所属行业
        /// </summary>
        [Display(Name = "所属行业")]
        [SugarColumn(ColumnDescription = "所属行业")]
        public string profession { get; set; }
        /// <summary>
        /// 店铺做标牌
        /// </summary>
        [Display(Name = "店铺定位")]
        [SugarColumn(ColumnDescription = "店铺定位", IsNullable =true)]
        public string storeCoordinate { get; set; }
        /// <summary>
        /// 身份证
        /// </summary>
        [Display(Name = "身份证")]
        [SugarColumn(ColumnDescription = "身份证", IsNullable = true)]
        public string idCradNumber { get; set; }
        /// <summary>
        /// 学校名称
        /// </summary>
        [Display(Name = "学校名称")]
        [SugarColumn(ColumnDescription = "学校名称", IsNullable = true)]
        public string schoolName { get; set; }
    }
}