Add storage location field to battery with dynamic dropdown

Dropdown populated from existing distinct storage locations,
with 'New location...' option revealing a text input.
This commit is contained in:
2026-04-12 15:22:02 -05:00
parent 5a7bbd46ab
commit 70abcfd0ac
3 changed files with 25 additions and 1 deletions
+1
View File
@@ -45,6 +45,7 @@ class Battery(Base):
tested_date = Column(String(10), nullable=True) # YYYY-MM-DD of last test
charge_cycles = Column(Integer, nullable=True) # number of charge cycles
purchase_date = Column(String(10), nullable=True) # YYYY-MM-DD when purchased
storage_location = Column(String(100), nullable=True) # where stored when not installed
device = relationship("Device", back_populates="batteries")