feat: Add files from examples/Garmin_Analyser

This commit is contained in:
2025-10-10 12:25:32 -07:00
parent 213b76ef74
commit df18e11a17
56 changed files with 8926 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
"""Create activity_downloads table
Revision ID: ed891fdd5174
Revises:
Create Date: 2025-10-07 08:32:17.202653
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ed891fdd5174'
down_revision = None
branch_labels = None
depends_on = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('activity_downloads',
sa.Column('activity_id', sa.Integer(), nullable=False),
sa.Column('source', sa.String(), nullable=True),
sa.Column('file_path', sa.String(), nullable=True),
sa.Column('file_format', sa.String(), nullable=True),
sa.Column('status', sa.String(), nullable=True),
sa.Column('http_status', sa.Integer(), nullable=True),
sa.Column('etag', sa.String(), nullable=True),
sa.Column('last_modified', sa.DateTime(), nullable=True),
sa.Column('size_bytes', sa.Integer(), nullable=True),
sa.Column('checksum_sha256', sa.String(), nullable=True),
sa.Column('downloaded_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('error_message', sa.Text(), nullable=True),
sa.PrimaryKeyConstraint('activity_id')
)
op.create_index(op.f('ix_activity_downloads_activity_id'), 'activity_downloads', ['activity_id'], unique=False)
op.create_index(op.f('ix_activity_downloads_file_path'), 'activity_downloads', ['file_path'], unique=True)
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index(op.f('ix_activity_downloads_file_path'), table_name='activity_downloads')
op.drop_index(op.f('ix_activity_downloads_activity_id'), table_name='activity_downloads')
op.drop_table('activity_downloads')
# ### end Alembic commands ###