Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
72 lines
3.7 KiB
Python
72 lines
3.7 KiB
Python
"""film projects + shots
|
|
|
|
Revision ID: 7a7f527a1119
|
|
Revises: 963b9e44bccb
|
|
Create Date: 2026-08-18 12:29:00.765816+00:00
|
|
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = '7a7f527a1119'
|
|
down_revision: Union[str, None] = '963b9e44bccb'
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('film_projects',
|
|
sa.Column('id', sa.String(length=32), nullable=False),
|
|
sa.Column('user_id', sa.String(length=32), nullable=False),
|
|
sa.Column('title', sa.String(length=200), server_default=sa.text("('')"), nullable=False),
|
|
sa.Column('character_id', sa.String(length=32), server_default=sa.text("('')"), nullable=False),
|
|
sa.Column('total_runtime_s', sa.Integer(), server_default=sa.text('0'), nullable=False),
|
|
sa.Column('shot_count', sa.Integer(), server_default=sa.text('0'), nullable=False),
|
|
sa.Column('status', sa.String(length=20), server_default=sa.text("'planned'"), nullable=False),
|
|
sa.Column('created_at', sa.DateTime(timezone=True), server_default=sa.text('(CURRENT_TIMESTAMP)'), nullable=False),
|
|
sa.Column('updated_at', sa.DateTime(timezone=True), server_default=sa.text('(CURRENT_TIMESTAMP)'), nullable=False),
|
|
sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
|
|
sa.PrimaryKeyConstraint('id')
|
|
)
|
|
op.create_index(op.f('ix_film_projects_created_at'), 'film_projects', ['created_at'], unique=False)
|
|
op.create_index(op.f('ix_film_projects_status'), 'film_projects', ['status'], unique=False)
|
|
op.create_index(op.f('ix_film_projects_user_id'), 'film_projects', ['user_id'], unique=False)
|
|
op.create_table('film_shots',
|
|
sa.Column('id', sa.String(length=32), nullable=False),
|
|
sa.Column('project_id', sa.String(length=32), nullable=False),
|
|
sa.Column('shot_key', sa.String(length=64), nullable=False),
|
|
sa.Column('order', sa.Integer(), nullable=False),
|
|
sa.Column('role', sa.String(length=30), server_default=sa.text("('')"), nullable=False),
|
|
sa.Column('camera_motion', sa.String(length=40), server_default=sa.text("'none'"), nullable=False),
|
|
sa.Column('duration_ms', sa.Integer(), server_default=sa.text('0'), nullable=False),
|
|
sa.Column('prompt', sa.Text(), server_default=sa.text("('')"), nullable=False),
|
|
sa.Column('negative_prompt', sa.Text(), server_default=sa.text("('')"), nullable=False),
|
|
sa.Column('seed', sa.Integer(), server_default=sa.text('0'), nullable=False),
|
|
sa.Column('render_job_id', sa.String(length=64), server_default=sa.text("('')"), nullable=False),
|
|
sa.Column('status', sa.String(length=20), server_default=sa.text("'pending'"), nullable=False),
|
|
sa.ForeignKeyConstraint(['project_id'], ['film_projects.id'], ),
|
|
sa.PrimaryKeyConstraint('id')
|
|
)
|
|
op.create_index(op.f('ix_film_shots_project_id'), 'film_shots', ['project_id'], unique=False)
|
|
op.create_index(op.f('ix_film_shots_status'), 'film_shots', ['status'], unique=False)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_index(op.f('ix_film_shots_status'), table_name='film_shots')
|
|
op.drop_index(op.f('ix_film_shots_project_id'), table_name='film_shots')
|
|
op.drop_table('film_shots')
|
|
op.drop_index(op.f('ix_film_projects_user_id'), table_name='film_projects')
|
|
op.drop_index(op.f('ix_film_projects_status'), table_name='film_projects')
|
|
op.drop_index(op.f('ix_film_projects_created_at'), table_name='film_projects')
|
|
op.drop_table('film_projects')
|
|
# ### end Alembic commands ###
|