/*********************************************************************** * Project: baifenBinfa * ProjectName: 百分兵法管理系统 * Web: http://chuanyin.com * Author: * Email: 34161541@qq.com * CreateTime: 2021-06-08 22:14:59 * Description: 暂无 ***********************************************************************/ using Chuanyin.Attribute; using SqlSugar; using System.ComponentModel.DataAnnotations; namespace CoreCms.Net.Model.Entities { /// /// 门店表 /// [SugarTable("CoreCmsStore",TableDescription = "门店表")] //[SqlCodeFirst] public partial class CoreCmsStore { /// /// 门店表 /// public CoreCmsStore() { } /// /// 序列 /// [Display(Name = "序列")] [SugarColumn(ColumnDescription = "序列", IsPrimaryKey = true, IsIdentity = true)] [Required(ErrorMessage = "请输入{0}")] public System.Int32 id { get; set; } /// /// 门店名称 /// [Display(Name = "门店名称")] [SugarColumn(ColumnDescription = "门店名称", IsNullable = true)] [StringLength(125, ErrorMessage = "【{0}】不能超过{1}字符长度")] public System.String storeName { get; set; } /// /// 门店电话/手机号 /// [Display(Name = "门店电话/手机号")] [SugarColumn(ColumnDescription = "门店电话/手机号", IsNullable = true)] [StringLength(13, ErrorMessage = "【{0}】不能超过{1}字符长度")] public System.String mobile { get; set; } /// /// 门店联系人 /// [Display(Name = "门店联系人")] [SugarColumn(ColumnDescription = "门店联系人", IsNullable = true)] [StringLength(32, ErrorMessage = "【{0}】不能超过{1}字符长度")] public System.String linkMan { get; set; } /// /// 门店logo /// [Display(Name = "门店logo")] [SugarColumn(ColumnDescription = "门店logo", IsNullable = true)] [StringLength(255, ErrorMessage = "【{0}】不能超过{1}字符长度")] public System.String logoImage { get; set; } /// /// 门店地区id /// [Display(Name = "门店地区id")] [SugarColumn(ColumnDescription = "门店地区id")] [Required(ErrorMessage = "请输入{0}")] public System.Int32 areaId { get; set; } /// /// 门店详细地址 /// [Display(Name = "门店详细地址")] [SugarColumn(ColumnDescription = "门店详细地址", IsNullable = true)] [StringLength(200, ErrorMessage = "【{0}】不能超过{1}字符长度")] public System.String address { get; set; } /// /// 坐标位置 /// [Display(Name = "坐标位置")] [SugarColumn(ColumnDescription = "坐标位置", IsNullable = true)] [StringLength(50, ErrorMessage = "【{0}】不能超过{1}字符长度")] public System.String coordinate { get; set; } /// /// 纬度 /// [Display(Name = "纬度")] [SugarColumn(ColumnDescription = "纬度", IsNullable = true)] [StringLength(40, ErrorMessage = "【{0}】不能超过{1}字符长度")] public System.String latitude { get; set; } /// /// 经度 /// [Display(Name = "经度")] [SugarColumn(ColumnDescription = "经度", IsNullable = true)] [StringLength(40, ErrorMessage = "【{0}】不能超过{1}字符长度")] public System.String longitude { get; set; } /// /// 是否默认 /// [Display(Name = "是否默认")] [SugarColumn(ColumnDescription = "是否默认")] [Required(ErrorMessage = "请输入{0}")] public System.Boolean isDefault { get; set; } /// /// 创建时间 /// [Display(Name = "创建时间")] [SugarColumn(ColumnDescription = "创建时间")] [Required(ErrorMessage = "请输入{0}")] public System.DateTime createTime { get; set; } /// /// 更新时间 /// [Display(Name = "更新时间")] [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)] public System.DateTime? updateTime { get; set; } /// /// 距离 /// [Display(Name = "距离")] [SugarColumn(ColumnDescription = "距离")] [Required(ErrorMessage = "请输入{0}")] public System.Decimal distance { get; set; } /// /// 所属用户经销商 在申请成为经销商上建立店铺的时候关联,如果为0 或者空,为官方直营店,后台新建立店铺都为直营店 /// [Display(Name = "所属用户")] [SugarColumn(ColumnDescription = "所属用户" ,IsNullable =true)] public int? userID { get; set; } /// /// 是否有效 /// [Display(Name = "生效")] [SugarColumn(ColumnDescription = "生效",DefaultValue ="true")] public bool en { get; set; }=true; } }