- Fork elmeg-demo codebase for multi-band support - Add data importer infrastructure with base class - Create band-specific importers: - phish.py: Phish.net API v5 - grateful_dead.py: Grateful Stats API - setlistfm.py: Dead & Company, Billy Strings (Setlist.fm) - Add spec-kit configuration for Gemini - Update README with supported bands and architecture
48 lines
1.6 KiB
Python
48 lines
1.6 KiB
Python
"""Add review system
|
|
|
|
Revision ID: 366067fc1318
|
|
Revises: 32ebf231693a
|
|
Create Date: 2025-12-02 02:50:57.830097
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
import sqlmodel
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = '366067fc1318'
|
|
down_revision: Union[str, Sequence[str], None] = '32ebf231693a'
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
"""Upgrade schema."""
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('review',
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
sa.Column('user_id', sa.Integer(), nullable=False),
|
|
sa.Column('blurb', sqlmodel.sql.sqltypes.AutoString(), nullable=False),
|
|
sa.Column('content', sqlmodel.sql.sqltypes.AutoString(), nullable=False),
|
|
sa.Column('score', sa.Integer(), nullable=False),
|
|
sa.Column('created_at', sa.DateTime(), nullable=False),
|
|
sa.Column('show_id', sa.Integer(), nullable=True),
|
|
sa.Column('venue_id', sa.Integer(), nullable=True),
|
|
sa.Column('song_id', sa.Integer(), nullable=True),
|
|
sa.ForeignKeyConstraint(['show_id'], ['show.id'], ),
|
|
sa.ForeignKeyConstraint(['song_id'], ['song.id'], ),
|
|
sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
|
|
sa.ForeignKeyConstraint(['venue_id'], ['venue.id'], ),
|
|
sa.PrimaryKeyConstraint('id')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
"""Downgrade schema."""
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('review')
|
|
# ### end Alembic commands ###
|