|
|
@@ -48,6 +48,7 @@ class CrmProduct(Base):
|
|
|
id = Column(String(64), primary_key=True, comment="主键ID")
|
|
|
product_no = Column(String(50), nullable=False, comment="产品编号")
|
|
|
product_name = Column(String(200), nullable=False, comment="产品名称")
|
|
|
+ name_pinyin_abbr = Column(String(100), nullable=True, comment="产品名称拼音首字母(小写)")
|
|
|
category_id = Column(String(64), nullable=True, comment="分类ID")
|
|
|
category_name = Column(String(100), nullable=True, comment="分类名称(冗余)")
|
|
|
model = Column(String(100), nullable=True, comment="规格型号")
|
|
|
@@ -157,6 +158,7 @@ class CrmCustomer(Base):
|
|
|
# 业务字段
|
|
|
customer_no = Column(String(50), nullable=False, comment="客户编号(唯一)")
|
|
|
customer_name = Column(String(200), nullable=False, comment="客户名称")
|
|
|
+ name_pinyin_abbr = Column(String(100), nullable=True, comment="客户名称拼音首字母(小写)")
|
|
|
short_name = Column(String(100), nullable=True, comment="客户简称")
|
|
|
customer_type = Column(String(20), nullable=True, default="company", comment="客户类型(字典 crm_customer_type)")
|
|
|
mobile = Column(String(20), nullable=True, comment="手机号")
|