before claude fix #1
This commit is contained in:
16
FitnessSync/backend/src/models/config.py
Normal file
16
FitnessSync/backend/src/models/config.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from sqlalchemy import Column, Integer, String, DateTime, JSON
|
||||
from sqlalchemy.sql import func
|
||||
from datetime import datetime
|
||||
from ..models import Base
|
||||
|
||||
class Configuration(Base):
|
||||
__tablename__ = "configurations"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
fitbit_client_id = Column(String, nullable=True)
|
||||
fitbit_client_secret = Column(String, nullable=True) # This should be encrypted in production
|
||||
garmin_username = Column(String, nullable=True)
|
||||
garmin_password = Column(String, nullable=True) # This should be encrypted in production
|
||||
sync_settings = Column(JSON, nullable=True) # JSON field for sync preferences
|
||||
created_at = Column(DateTime(timezone=True), server_default=func.now())
|
||||
updated_at = Column(DateTime(timezone=True), onupdate=func.now())
|
||||
Reference in New Issue
Block a user