def METHOD_NAME(table: str, index: Optional[str]):
    op.create_table(table,
                    sa.Column('road1', sa.Integer(), nullable=False),
                    sa.Column('road2', sa.Integer(), nullable=False),
                    sa.Column('years_ago', sa.Integer(), nullable=False),
                    sa.Column('data', sa.types.JSON(), nullable=False),
                    sa.PrimaryKeyConstraint('road1', 'road2', 'years_ago')
                    )
    if index:
        op.create_index(index, table,
                        ['road1', 'road2', 'years_ago'], unique=True)