using Microsoft.EntityFrameworkCore;
|
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
/*
|
* @author : 刘文奇
|
* @date : 2024/4/23下午4:07:57
|
* @desc : 往来单位
|
*/
|
namespace Admin.NET.Core
|
{
|
/// <summary>
|
/// 往来单位
|
/// </summary>
|
[Table("base_customer")]
|
[Comment("往来单位")]
|
public class BaseCustomer : DEntityBase
|
{
|
|
|
/// <summary>
|
/// 客户编号
|
/// </summary>
|
[Comment("客户编号")]
|
[Required]
|
[MaxLength(50)]
|
public string CustCode { get; set; }
|
|
|
/// <summary>
|
/// 客户中文名称
|
/// </summary>
|
[Comment("客户中文名称")]
|
[Required]
|
[MaxLength(255)]
|
public string CustChinaName { get; set; }
|
|
|
/// <summary>
|
/// 客户英文名称
|
/// </summary>
|
[Comment("客户英文名称")]
|
[MaxLength(255)]
|
public string CustEnglishName { get; set; }
|
|
|
/// <summary>
|
/// 助记码
|
/// </summary>
|
[Comment("助记码")]
|
[MaxLength(255)]
|
public string MnemonicCode { get; set; }
|
|
|
/// <summary>
|
/// 类型
|
/// </summary>
|
[Comment("类型")]
|
[Required]
|
|
public BaseCustomerTypeEnum CustType { get; set; }
|
|
|
/// <summary>
|
/// 类型名称
|
/// </summary>
|
[Comment("类型名称")]
|
[Required]
|
[MaxLength(50)]
|
public string CustTypeName { get; set; }
|
|
|
/// <summary>
|
/// 联系人
|
/// </summary>
|
[Comment("联系人")]
|
[MaxLength(50)]
|
public string LinkMan { get; set; }
|
|
|
/// <summary>
|
/// 电话
|
/// </summary>
|
[Comment("电话")]
|
[MaxLength(50)]
|
public string Phone { get; set; }
|
|
|
/// <summary>
|
/// 电子邮件
|
/// </summary>
|
[Comment("电子邮件")]
|
[MaxLength(50)]
|
public string Email { get; set; }
|
|
|
/// <summary>
|
/// 邮编
|
/// </summary>
|
[Comment("邮编")]
|
[MaxLength(50)]
|
public string ZipCode { get; set; }
|
|
|
/// <summary>
|
/// 省份
|
/// </summary>
|
[Comment("省份")]
|
[MaxLength(50)]
|
public string Province { get; set; }
|
|
|
/// <summary>
|
/// 城市
|
/// </summary>
|
[Comment("城市")]
|
[MaxLength(50)]
|
public string City { get; set; }
|
|
|
/// <summary>
|
/// 地址
|
/// </summary>
|
[Comment("地址")]
|
[MaxLength(255)]
|
public string Address { get; set; }
|
|
|
/// <summary>
|
/// 是否禁用
|
/// </summary>
|
[Comment("是否禁用")]
|
[Required]
|
|
public bool IsDisabled { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
}
|