mirror of
https://github.com/sstent/AICyclingCoach.git
synced 2026-02-13 19:06:41 +00:00
sync
This commit is contained in:
12
backend/app/models/garmin_sync_log.py
Normal file
12
backend/app/models/garmin_sync_log.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from sqlalchemy import Column, Integer, DateTime, String, Text
|
||||
from .base import BaseModel
|
||||
|
||||
|
||||
class GarminSyncLog(BaseModel):
|
||||
"""Log model for tracking Garmin sync operations."""
|
||||
__tablename__ = "garmin_sync_log"
|
||||
|
||||
last_sync_time = Column(DateTime)
|
||||
activities_synced = Column(Integer, default=0)
|
||||
status = Column(String(20)) # success, error, in_progress
|
||||
error_message = Column(Text)
|
||||
Reference in New Issue
Block a user