(no commit message provided)

Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
dxc
2026-02-09 15:28:42 +08:00
parent 20e4329a44
commit c0463cb7dc
3 changed files with 4 additions and 6 deletions

View File

@ -8,8 +8,8 @@ class BomTable(db.Model):
child_id = db.Column(db.Integer, db.ForeignKey('material_base.id'), nullable=False)
bom_no = db.Column(db.String(100), comment='BOM编号')
version = db.Column(db.String(50), comment='版本')
dosage = db.Column(db.Numeric(19, 4), comment='用量')
loss_rate = db.Column(db.Numeric(5, 2), comment='损耗率%')
dosage = db.Column(db.Numeric(19, 4), comment='个数')
loss_rate = db.Column(db.Numeric(5, 2), comment='损耗率%(已废弃)', default=0, nullable=True)
remark = db.Column(db.Text, comment='备注')
# relationships