feat(pl): map photo_urls on vehicle and personnel models

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-02 10:25:46 +08:00
1 parent 2f580eca81
commit 56b94e1c5b
1 file changed
+2
+2
View File
@@ -69,6 +69,7 @@ class PlVehicle(Base):
default_driver_name = Column(String(100), nullable=True, comment="默认司机姓名(冗余)")
load_capacity = Column(DECIMAL(10, 2), nullable=True, comment="载重(吨)")
vehicle_status = Column(String(20), nullable=False, default="available", comment="车辆状态 available-可用 maintaining-维修中 scrapped-报废")
photo_urls = Column(String(2000), nullable=True, comment="车辆照片URL,逗号分隔(默认1张)")
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="备注")
@@ -103,6 +104,7 @@ class PlPersonnel(Base):
comment="人员归属 self-山峡 carrier-非山峡",
)
status = Column(CHAR(1), nullable=False, default="1", comment="状态 1-在职 0-停用")
photo_urls = Column(String(2000), nullable=True, comment="人员照片URL,逗号分隔(默认1张)")
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="备注")