many updates

This commit is contained in:
2026-01-11 06:06:43 -08:00
parent 67357b5038
commit 4bb86b603e
73 changed files with 2881 additions and 59 deletions

View File

@@ -1,4 +1,4 @@
from sqlalchemy import Column, Integer, String, DateTime
from sqlalchemy import Column, Integer, String, DateTime, Float
from sqlalchemy.sql import func
from .base import Base
@@ -9,6 +9,9 @@ class BikeSetup(Base):
frame = Column(String, nullable=False)
chainring = Column(Integer, nullable=False)
rear_cog = Column(Integer, nullable=False)
weight_kg = Column(Float, nullable=True) # Weight of the bike in kg
purchase_date = Column(DateTime, nullable=True)
retirement_date = Column(DateTime, nullable=True)
name = Column(String, nullable=True) # Optional, can be derived or user-set
created_at = Column(DateTime(timezone=True), server_default=func.now())