fix(backend): default empty strings for optional month template codes
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
0a5bf28e58
commit
08f3b76e24
1 file changed
+2
-2
@@ -32,8 +32,8 @@ class BizQcMaterialMonthTemplate(Base):
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID")
|
||||
material_id = Column(String(64), nullable=True, comment="关联物料ID")
|
||||
material_code = Column(String(64), nullable=False, comment="物料编码")
|
||||
material_name = Column(String(200), nullable=False, comment="物料名称")
|
||||
material_code = Column(String(64), nullable=False, default="", comment="物料编码")
|
||||
material_name = Column(String(200), nullable=False, default="", comment="物料名称")
|
||||
spec_model = Column(String(200), nullable=True, comment="规格型号")
|
||||
unit = Column(String(32), nullable=True, comment="单位")
|
||||
catalog_no = Column(String(128), nullable=True, comment="货号")
|
||||
|
||||
Reference in new issue
Block a user