added activity view

This commit is contained in:
2026-01-09 09:59:36 -08:00
parent c45e41b6a9
commit 55e37fbca8
168 changed files with 8799 additions and 2426 deletions

View File

@@ -0,0 +1,15 @@
from sqlalchemy import Column, Integer, String, DateTime
from sqlalchemy.sql import func
from .base import Base
class BikeSetup(Base):
__tablename__ = "bike_setups"
id = Column(Integer, primary_key=True, index=True)
frame = Column(String, nullable=False)
chainring = Column(Integer, nullable=False)
rear_cog = Column(Integer, nullable=False)
name = Column(String, nullable=True) # Optional, can be derived or user-set
created_at = Column(DateTime(timezone=True), server_default=func.now())
updated_at = Column(DateTime(timezone=True), onupdate=func.now())