Vibe coded a bit more ... now we have session, attached picture and analysis, MOA group computation
This commit is contained in:
36
migrations/versions/b94b21ec5fa9_session_photos.py
Normal file
36
migrations/versions/b94b21ec5fa9_session_photos.py
Normal file
@@ -0,0 +1,36 @@
|
||||
"""session photos
|
||||
|
||||
Revision ID: b94b21ec5fa9
|
||||
Revises: 875675ed7b5a
|
||||
Create Date: 2026-03-17 11:41:05.860460
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'b94b21ec5fa9'
|
||||
down_revision = '875675ed7b5a'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('session_photos',
|
||||
sa.Column('id', sa.Integer(), nullable=False),
|
||||
sa.Column('session_id', sa.Integer(), nullable=False),
|
||||
sa.Column('photo_path', sa.Text(), nullable=False),
|
||||
sa.Column('caption', sa.String(length=255), nullable=True),
|
||||
sa.Column('created_at', sa.DateTime(timezone=True), nullable=False),
|
||||
sa.ForeignKeyConstraint(['session_id'], ['shooting_sessions.id'], ),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table('session_photos')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user