From bd682288f9e5dc22aafe4fe1dbb59f7b774d2303 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Wed, 26 Aug 2026 17:06:59 +0800 Subject: [PATCH] feat(pl): add PlCustomerStopPref model Co-authored-by: Cursor --- backend/app/models/pl_models.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/backend/app/models/pl_models.py b/backend/app/models/pl_models.py index 80666eca2..9b18b16c3 100644 --- a/backend/app/models/pl_models.py +++ b/backend/app/models/pl_models.py @@ -140,6 +140,31 @@ class PlTransportAddress(Base): del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记:0-正常 1-已删除") +class PlCustomerStopPref(Base): + """客户装/送货物流默认记忆 pl_customer_stop_pref""" + + __tablename__ = "pl_customer_stop_pref" + + id = Column(String(64), primary_key=True, comment="主键ID") + customer_id = Column(String(64), nullable=False, comment="客户ID") + customer_name = Column(String(200), nullable=True, comment="客户名称") + stop_type = Column(String(20), nullable=False, comment="load-装货 delivery-送货") + address = Column(String(500), nullable=True, comment="地址") + lng = Column(DECIMAL(10, 6), nullable=True, comment="经度") + lat = Column(DECIMAL(10, 6), nullable=True, comment="纬度") + contact = Column(String(200), nullable=True, comment="联系方式") + notes = Column(String(500), nullable=True, comment="注意事项") + tenant_no = Column(String(64), nullable=False, default="shanxia2.0", comment="租户编号") + order_num = Column(Integer, nullable=True, comment="排序号") + remark = Column(String(512), nullable=True, comment="备注") + create_by = Column(String(64), nullable=True, comment="创建人id") + create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID") + create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间") + update_by = Column(String(64), nullable=True, comment="更新人id") + update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间") + del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记:0-正常 1-已删除") + + class PlCert(Base): """证书表 pl_cert"""