"""cmf_owner_assistans

Revision ID: 96e6c2e35b25
Revises: 2b517aecdcf5
Create Date: 2022-12-06 19:36:50.408347

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '96e6c2e35b25'
down_revision = '2b517aecdcf5'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('cmf_chat_group_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_chat_group_cmf_owner_assistants_left_id'), 'cmf_chat_group_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_chat_group_cmf_owner_assistants_parent_id'), 'cmf_chat_group_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_chat_group_cmf_owner_assistants_right_id'), 'cmf_chat_group_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_chat_group_cmf_owner_assistants_root_id'), 'cmf_chat_group_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_chat_topic_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_chat_topic_cmf_owner_assistants_left_id'), 'cmf_chat_topic_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_chat_topic_cmf_owner_assistants_parent_id'), 'cmf_chat_topic_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_chat_topic_cmf_owner_assistants_right_id'), 'cmf_chat_topic_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_chat_topic_cmf_owner_assistants_root_id'), 'cmf_chat_topic_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_company_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_company_cmf_owner_assistants_left_id'), 'cmf_company_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_company_cmf_owner_assistants_parent_id'), 'cmf_company_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_company_cmf_owner_assistants_right_id'), 'cmf_company_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_company_cmf_owner_assistants_root_id'), 'cmf_company_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_dashboard_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_dashboard_cmf_owner_assistants_left_id'), 'cmf_dashboard_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_dashboard_cmf_owner_assistants_parent_id'), 'cmf_dashboard_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_dashboard_cmf_owner_assistants_right_id'), 'cmf_dashboard_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_dashboard_cmf_owner_assistants_root_id'), 'cmf_dashboard_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_deal_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_deal_cmf_owner_assistants_left_id'), 'cmf_deal_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_deal_cmf_owner_assistants_parent_id'), 'cmf_deal_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_deal_cmf_owner_assistants_right_id'), 'cmf_deal_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_deal_cmf_owner_assistants_root_id'), 'cmf_deal_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_document_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_document_cmf_owner_assistants_left_id'), 'cmf_document_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_document_cmf_owner_assistants_parent_id'), 'cmf_document_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_document_cmf_owner_assistants_right_id'), 'cmf_document_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_document_cmf_owner_assistants_root_id'), 'cmf_document_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_folder_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_folder_cmf_owner_assistants_left_id'), 'cmf_folder_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_folder_cmf_owner_assistants_parent_id'), 'cmf_folder_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_folder_cmf_owner_assistants_right_id'), 'cmf_folder_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_folder_cmf_owner_assistants_root_id'), 'cmf_folder_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_import_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_import_cmf_owner_assistants_left_id'), 'cmf_import_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_import_cmf_owner_assistants_parent_id'), 'cmf_import_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_import_cmf_owner_assistants_right_id'), 'cmf_import_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_import_cmf_owner_assistants_root_id'), 'cmf_import_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_invoice_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_invoice_cmf_owner_assistants_left_id'), 'cmf_invoice_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_invoice_cmf_owner_assistants_parent_id'), 'cmf_invoice_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_invoice_cmf_owner_assistants_right_id'), 'cmf_invoice_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_invoice_cmf_owner_assistants_root_id'), 'cmf_invoice_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_lead_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_lead_cmf_owner_assistants_left_id'), 'cmf_lead_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_lead_cmf_owner_assistants_parent_id'), 'cmf_lead_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_lead_cmf_owner_assistants_right_id'), 'cmf_lead_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_lead_cmf_owner_assistants_root_id'), 'cmf_lead_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_list_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_list_cmf_owner_assistants_left_id'), 'cmf_list_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_list_cmf_owner_assistants_parent_id'), 'cmf_list_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_list_cmf_owner_assistants_right_id'), 'cmf_list_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_list_cmf_owner_assistants_root_id'), 'cmf_list_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_mail_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_mail_cmf_owner_assistants_left_id'), 'cmf_mail_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_mail_cmf_owner_assistants_parent_id'), 'cmf_mail_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_mail_cmf_owner_assistants_right_id'), 'cmf_mail_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_mail_cmf_owner_assistants_root_id'), 'cmf_mail_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_payment_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_payment_cmf_owner_assistants_left_id'), 'cmf_payment_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_payment_cmf_owner_assistants_parent_id'), 'cmf_payment_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_payment_cmf_owner_assistants_right_id'), 'cmf_payment_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_payment_cmf_owner_assistants_root_id'), 'cmf_payment_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_pipeline_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_pipeline_cmf_owner_assistants_left_id'), 'cmf_pipeline_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_pipeline_cmf_owner_assistants_parent_id'), 'cmf_pipeline_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_pipeline_cmf_owner_assistants_right_id'), 'cmf_pipeline_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_pipeline_cmf_owner_assistants_root_id'), 'cmf_pipeline_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_project_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_project_cmf_owner_assistants_left_id'), 'cmf_project_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_project_cmf_owner_assistants_parent_id'), 'cmf_project_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_project_cmf_owner_assistants_right_id'), 'cmf_project_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_project_cmf_owner_assistants_root_id'), 'cmf_project_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_purchase_order_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_purchase_order_cmf_owner_assistants_left_id'), 'cmf_purchase_order_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_purchase_order_cmf_owner_assistants_parent_id'), 'cmf_purchase_order_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_purchase_order_cmf_owner_assistants_right_id'), 'cmf_purchase_order_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_purchase_order_cmf_owner_assistants_root_id'), 'cmf_purchase_order_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_purchase_order_items_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_purchase_order_items_cmf_owner_assistants_left_id'), 'cmf_purchase_order_items_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_purchase_order_items_cmf_owner_assistants_parent_id'), 'cmf_purchase_order_items_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_purchase_order_items_cmf_owner_assistants_right_id'), 'cmf_purchase_order_items_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_purchase_order_items_cmf_owner_assistants_root_id'), 'cmf_purchase_order_items_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_roadmap_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_roadmap_cmf_owner_assistants_left_id'), 'cmf_roadmap_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_roadmap_cmf_owner_assistants_parent_id'), 'cmf_roadmap_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_roadmap_cmf_owner_assistants_right_id'), 'cmf_roadmap_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_roadmap_cmf_owner_assistants_root_id'), 'cmf_roadmap_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_scheme_wf_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_scheme_wf_cmf_owner_assistants_left_id'), 'cmf_scheme_wf_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_scheme_wf_cmf_owner_assistants_parent_id'), 'cmf_scheme_wf_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_scheme_wf_cmf_owner_assistants_right_id'), 'cmf_scheme_wf_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_scheme_wf_cmf_owner_assistants_root_id'), 'cmf_scheme_wf_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_stock_incoming_order_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_stock_incoming_order_cmf_owner_assistants_left_id'), 'cmf_stock_incoming_order_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_incoming_order_cmf_owner_assistants_parent_id'), 'cmf_stock_incoming_order_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_incoming_order_cmf_owner_assistants_right_id'), 'cmf_stock_incoming_order_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_incoming_order_cmf_owner_assistants_root_id'), 'cmf_stock_incoming_order_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_stock_initial_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_stock_initial_cmf_owner_assistants_left_id'), 'cmf_stock_initial_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_initial_cmf_owner_assistants_parent_id'), 'cmf_stock_initial_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_initial_cmf_owner_assistants_right_id'), 'cmf_stock_initial_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_initial_cmf_owner_assistants_root_id'), 'cmf_stock_initial_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_stock_inventory_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_stock_inventory_cmf_owner_assistants_left_id'), 'cmf_stock_inventory_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_inventory_cmf_owner_assistants_parent_id'), 'cmf_stock_inventory_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_inventory_cmf_owner_assistants_right_id'), 'cmf_stock_inventory_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_inventory_cmf_owner_assistants_root_id'), 'cmf_stock_inventory_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_stock_move_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_stock_move_cmf_owner_assistants_left_id'), 'cmf_stock_move_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_move_cmf_owner_assistants_parent_id'), 'cmf_stock_move_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_move_cmf_owner_assistants_right_id'), 'cmf_stock_move_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_move_cmf_owner_assistants_root_id'), 'cmf_stock_move_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_stock_outcoming_order_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_stock_outcoming_order_cmf_owner_assistants_left_id'), 'cmf_stock_outcoming_order_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_outcoming_order_cmf_owner_assistants_parent_id'), 'cmf_stock_outcoming_order_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_outcoming_order_cmf_owner_assistants_right_id'), 'cmf_stock_outcoming_order_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_stock_outcoming_order_cmf_owner_assistants_root_id'), 'cmf_stock_outcoming_order_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_task_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_task_cmf_owner_assistants_left_id'), 'cmf_task_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_task_cmf_owner_assistants_parent_id'), 'cmf_task_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_task_cmf_owner_assistants_right_id'), 'cmf_task_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_task_cmf_owner_assistants_root_id'), 'cmf_task_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_task_filter_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_task_filter_cmf_owner_assistants_left_id'), 'cmf_task_filter_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_task_filter_cmf_owner_assistants_parent_id'), 'cmf_task_filter_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_task_filter_cmf_owner_assistants_right_id'), 'cmf_task_filter_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_task_filter_cmf_owner_assistants_root_id'), 'cmf_task_filter_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_task_report_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_task_report_cmf_owner_assistants_left_id'), 'cmf_task_report_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_task_report_cmf_owner_assistants_parent_id'), 'cmf_task_report_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_task_report_cmf_owner_assistants_right_id'), 'cmf_task_report_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_task_report_cmf_owner_assistants_root_id'), 'cmf_task_report_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_u_work_post_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_u_work_post_cmf_owner_assistants_left_id'), 'cmf_u_work_post_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_u_work_post_cmf_owner_assistants_parent_id'), 'cmf_u_work_post_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_u_work_post_cmf_owner_assistants_right_id'), 'cmf_u_work_post_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_u_work_post_cmf_owner_assistants_root_id'), 'cmf_u_work_post_cmf_owner_assistants', ['root_id'], unique=False)
    op.drop_index('ix_cmf_access_list_cmf_owner_assistant_id', table_name='cmf_access_list')
    op.drop_column('cmf_access_list', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_access_rule_cmf_owner_assistant_id', table_name='cmf_access_rule')
    op.drop_column('cmf_access_rule', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_active_entity_filter_cmf_owner_assistant_id', table_name='cmf_active_entity_filter')
    op.drop_column('cmf_active_entity_filter', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_activity_cmf_owner_assistant_id', table_name='cmf_activity')
    op.drop_column('cmf_activity', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_attachment_cmf_owner_assistant_id', table_name='cmf_attachment')
    op.drop_column('cmf_attachment', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_auth_cmf_owner_assistant_id', table_name='cmf_auth')
    op.drop_column('cmf_auth', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_auth_ldap_plugin_cmf_owner_assistant_id', table_name='cmf_auth_ldap_plugin')
    op.drop_column('cmf_auth_ldap_plugin', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_auth_plugin_data_cmf_owner_assistant_id', table_name='cmf_auth_plugin_data')
    op.drop_column('cmf_auth_plugin_data', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_automation_cron_trigger_cmf_owner_assistant_id', table_name='cmf_automation_cron_trigger')
    op.drop_column('cmf_automation_cron_trigger', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_automation_crud_trigger_cmf_owner_assistant_id', table_name='cmf_automation_crud_trigger')
    op.drop_column('cmf_automation_crud_trigger', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_balance_cmf_owner_assistant_id', table_name='cmf_balance')
    op.drop_column('cmf_balance', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_balance_operation_cmf_owner_assistant_id', table_name='cmf_balance_operation')
    op.drop_column('cmf_balance_operation', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_card_cmf_owner_assistant_id', table_name='cmf_card')
    op.drop_column('cmf_card', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_channel_call_cmf_owner_assistant_id', table_name='cmf_channel_call')
    op.drop_column('cmf_channel_call', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_channel_message_cmf_owner_assistant_id', table_name='cmf_channel_message')
    op.drop_column('cmf_channel_message', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_chat_message_cmf_owner_assistant_id', table_name='cmf_chat_message')
    op.drop_column('cmf_chat_message', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_comment_cmf_owner_assistant_id', table_name='cmf_comment')
    op.drop_column('cmf_comment', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_contract_cmf_owner_assistant_id', table_name='cmf_contract')
    op.drop_column('cmf_contract', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_currency_cmf_owner_assistant_id', table_name='cmf_currency')
    op.drop_column('cmf_currency', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_deal_items_cmf_owner_assistant_id', table_name='cmf_deal_items')
    op.drop_column('cmf_deal_items', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_document_history_cmf_owner_assistant_id', table_name='cmf_document_history')
    op.drop_column('cmf_document_history', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_filter_cmf_owner_assistant_id', table_name='cmf_filter')
    op.drop_column('cmf_filter', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_form_cmf_owner_assistant_id', table_name='cmf_form')
    op.drop_column('cmf_form', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_form_field_cmf_owner_assistant_id', table_name='cmf_form_field')
    op.drop_column('cmf_form_field', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_gantt_baseline_cmf_owner_assistant_id', table_name='cmf_gantt_baseline')
    op.drop_column('cmf_gantt_baseline', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_gantt_task_cmf_owner_assistant_id', table_name='cmf_gantt_task')
    op.drop_column('cmf_gantt_task', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_git_branch_cmf_owner_assistant_id', table_name='cmf_git_branch')
    op.drop_column('cmf_git_branch', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_git_commit_cmf_owner_assistant_id', table_name='cmf_git_commit')
    op.drop_column('cmf_git_commit', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_git_merge_request_cmf_owner_assistant_id', table_name='cmf_git_merge_request')
    op.drop_column('cmf_git_merge_request', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_git_repo_cmf_owner_assistant_id', table_name='cmf_git_repo')
    op.drop_column('cmf_git_repo', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_global_settings_cmf_owner_assistant_id', table_name='cmf_global_settings')
    op.drop_column('cmf_global_settings', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_global_var_cmf_owner_assistant_id', table_name='cmf_global_var')
    op.drop_column('cmf_global_var', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_integration_cmf_owner_assistant_id', table_name='cmf_integration')
    op.drop_column('cmf_integration', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_invoice_items_cmf_owner_assistant_id', table_name='cmf_invoice_items')
    op.drop_column('cmf_invoice_items', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_job_cmf_owner_assistant_id', table_name='cmf_job')
    op.drop_column('cmf_job', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_lead_mailbox_cmf_owner_assistant_id', table_name='cmf_lead_mailbox')
    op.drop_column('cmf_lead_mailbox', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_license_cmf_owner_assistant_id', table_name='cmf_license')
    op.drop_column('cmf_license', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_link_cmf_owner_assistant_id', table_name='cmf_link')
    op.drop_column('cmf_link', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_logic_type_cmf_owner_assistant_id', table_name='cmf_logic_type')
    op.drop_column('cmf_logic_type', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_mail_signature_cmf_owner_assistant_id', table_name='cmf_mail_signature')
    op.drop_column('cmf_mail_signature', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_mail_template_cmf_owner_assistant_id', table_name='cmf_mail_template')
    op.drop_column('cmf_mail_template', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_mailbox_cmf_owner_assistant_id', table_name='cmf_mailbox')
    op.drop_column('cmf_mailbox', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_menu_item_cmf_owner_assistant_id', table_name='cmf_menu_item')
    op.drop_column('cmf_menu_item', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_menu_tree_cmf_owner_assistant_id', table_name='cmf_menu_tree')
    op.drop_column('cmf_menu_tree', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_menu_tree_item_cmf_owner_assistant_id', table_name='cmf_menu_tree_item')
    op.drop_column('cmf_menu_tree_item', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_notify_cmf_owner_assistant_id', table_name='cmf_notify')
    op.drop_column('cmf_notify', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_org_unit_cmf_owner_assistant_id', table_name='cmf_org_unit')
    op.drop_column('cmf_org_unit', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_patch_cmf_owner_assistant_id', table_name='cmf_patch')
    op.drop_column('cmf_patch', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_person_cmf_owner_assistant_id', table_name='cmf_person')
    op.drop_column('cmf_person', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_person_group_cmf_owner_assistant_id', table_name='cmf_person_group')
    op.drop_column('cmf_person_group', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_person_sign_cmf_owner_assistant_id', table_name='cmf_person_sign')
    op.drop_column('cmf_person_sign', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_person_var_cmf_owner_assistant_id', table_name='cmf_person_var')
    op.drop_column('cmf_person_var', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_plan_cmf_owner_assistant_id', table_name='cmf_plan')
    op.drop_column('cmf_plan', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_plugin_cmf_owner_assistant_id', table_name='cmf_plugin')
    op.drop_column('cmf_plugin', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_plugin_asana_cmf_owner_assistant_id', table_name='cmf_plugin_asana')
    op.drop_column('cmf_plugin_asana', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_plugin_confluence_cmf_owner_assistant_id', table_name='cmf_plugin_confluence')
    op.drop_column('cmf_plugin_confluence', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_plugin_csv_cmf_owner_assistant_id', table_name='cmf_plugin_csv')
    op.drop_column('cmf_plugin_csv', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_plugin_git_cmf_owner_assistant_id', table_name='cmf_plugin_git')
    op.drop_column('cmf_plugin_git', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_plugin_jira_cmf_owner_assistant_id', table_name='cmf_plugin_jira')
    op.drop_column('cmf_plugin_jira', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_plugin_mail_box_cmf_owner_assistant_id', table_name='cmf_plugin_mail_box')
    op.drop_column('cmf_plugin_mail_box', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_plugin_s_m_s_gate_cmf_owner_assistant_id', table_name='cmf_plugin_s_m_s_gate')
    op.drop_column('cmf_plugin_s_m_s_gate', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_plugin_telphin_cmf_owner_assistant_id', table_name='cmf_plugin_telphin')
    op.drop_column('cmf_plugin_telphin', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_plugin_trello_cmf_owner_assistant_id', table_name='cmf_plugin_trello')
    op.drop_column('cmf_plugin_trello', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_plugin_zadarma_cmf_owner_assistant_id', table_name='cmf_plugin_zadarma')
    op.drop_column('cmf_plugin_zadarma', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_price_cmf_owner_assistant_id', table_name='cmf_price')
    op.drop_column('cmf_price', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_print_tmpl_cmf_owner_assistant_id', table_name='cmf_print_tmpl')
    op.drop_column('cmf_print_tmpl', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_product_cmf_owner_assistant_id', table_name='cmf_product')
    op.drop_column('cmf_product', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_refbook_cmf_owner_assistant_id', table_name='cmf_refbook')
    op.drop_column('cmf_refbook', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_relation_option_cmf_owner_assistant_id', table_name='cmf_relation_option')
    op.drop_column('cmf_relation_option', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_relation_type_cmf_owner_assistant_id', table_name='cmf_relation_type')
    op.drop_column('cmf_relation_type', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_role_cmf_owner_assistant_id', table_name='cmf_role')
    op.drop_column('cmf_role', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_sale_menu_group_cmf_owner_assistant_id', table_name='cmf_sale_menu_group')
    op.drop_column('cmf_sale_menu_group', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_scheme_wf_rule_cmf_owner_assistant_id', table_name='cmf_scheme_wf_rule')
    op.drop_column('cmf_scheme_wf_rule', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_sign_cmf_owner_assistant_id', table_name='cmf_sign')
    op.drop_column('cmf_sign', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_staff_control_settings_cmf_owner_assistant_id', table_name='cmf_staff_control_settings')
    op.drop_column('cmf_staff_control_settings', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_status_cmf_owner_assistant_id', table_name='cmf_status')
    op.drop_column('cmf_status', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_status_opt_cmf_owner_assistant_id', table_name='cmf_status_opt')
    op.drop_column('cmf_status_opt', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_stock_cmf_owner_assistant_id', table_name='cmf_stock')
    op.drop_column('cmf_stock', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_stock_incoming_order_item_cmf_owner_assistant_id', table_name='cmf_stock_incoming_order_item')
    op.drop_column('cmf_stock_incoming_order_item', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_stock_initial_item_cmf_owner_assistant_id', table_name='cmf_stock_initial_item')
    op.drop_column('cmf_stock_initial_item', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_stock_inventory_item_cmf_owner_assistant_id', table_name='cmf_stock_inventory_item')
    op.drop_column('cmf_stock_inventory_item', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_stock_item_cmf_owner_assistant_id', table_name='cmf_stock_item')
    op.drop_column('cmf_stock_item', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_stock_menu_group_cmf_owner_assistant_id', table_name='cmf_stock_menu_group')
    op.drop_column('cmf_stock_menu_group', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_stock_move_item_cmf_owner_assistant_id', table_name='cmf_stock_move_item')
    op.drop_column('cmf_stock_move_item', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_stock_operation_cmf_owner_assistant_id', table_name='cmf_stock_operation')
    op.drop_column('cmf_stock_operation', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_stock_operation_item_cmf_owner_assistant_id', table_name='cmf_stock_operation_item')
    op.drop_column('cmf_stock_operation_item', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_stock_outcoming_order_item_cmf_owner_assistant_id', table_name='cmf_stock_outcoming_order_item')
    op.drop_column('cmf_stock_outcoming_order_item', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_subscription_cmf_owner_assistant_id', table_name='cmf_subscription')
    op.drop_column('cmf_subscription', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_tag_cmf_owner_assistant_id', table_name='cmf_tag')
    op.drop_column('cmf_tag', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_tag_category_cmf_owner_assistant_id', table_name='cmf_tag_category')
    op.drop_column('cmf_tag_category', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_time_tracker_cmf_owner_assistant_id', table_name='cmf_time_tracker')
    op.drop_column('cmf_time_tracker', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_time_tracker_history_cmf_owner_assistant_id', table_name='cmf_time_tracker_history')
    op.drop_column('cmf_time_tracker_history', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_trans_cmf_owner_assistant_id', table_name='cmf_trans')
    op.drop_column('cmf_trans', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_trans_action_cmf_owner_assistant_id', table_name='cmf_trans_action')
    op.drop_column('cmf_trans_action', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_trans_filter_cmf_owner_assistant_id', table_name='cmf_trans_filter')
    op.drop_column('cmf_trans_filter', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_trans_valid_cmf_owner_assistant_id', table_name='cmf_trans_valid')
    op.drop_column('cmf_trans_valid', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_trigger_cmf_owner_assistant_id', table_name='cmf_trigger')
    op.drop_column('cmf_trigger', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_ui_form_cmf_owner_assistant_id', table_name='cmf_ui_form')
    op.drop_column('cmf_ui_form', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_ui_form_scheme_cmf_owner_assistant_id', table_name='cmf_ui_form_scheme')
    op.drop_column('cmf_ui_form_scheme', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_ui_form_scheme_rule_cmf_owner_assistant_id', table_name='cmf_ui_form_scheme_rule')
    op.drop_column('cmf_ui_form_scheme_rule', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_unit_cmf_owner_assistant_id', table_name='cmf_unit')
    op.drop_column('cmf_unit', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_webhook_cmf_owner_assistant_id', table_name='cmf_webhook')
    op.drop_column('cmf_webhook', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_whatsapp_cmf_owner_assistant_id', table_name='cmf_whatsapp')
    op.drop_column('cmf_whatsapp', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_wiki_cmf_owner_assistant_id', table_name='cmf_wiki')
    op.drop_column('cmf_wiki', 'cmf_owner_assistant_id')
    op.drop_index('ix_cmf_workflow_cmf_owner_assistant_id', table_name='cmf_workflow')
    op.drop_column('cmf_workflow', 'cmf_owner_assistant_id')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_workflow', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_workflow_cmf_owner_assistant_id', 'cmf_workflow', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_wiki', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_wiki_cmf_owner_assistant_id', 'cmf_wiki', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_whatsapp', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_whatsapp_cmf_owner_assistant_id', 'cmf_whatsapp', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_webhook', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_webhook_cmf_owner_assistant_id', 'cmf_webhook', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_unit', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_unit_cmf_owner_assistant_id', 'cmf_unit', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_ui_form_scheme_rule', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_ui_form_scheme_rule_cmf_owner_assistant_id', 'cmf_ui_form_scheme_rule', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_ui_form_scheme', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_ui_form_scheme_cmf_owner_assistant_id', 'cmf_ui_form_scheme', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_ui_form', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_ui_form_cmf_owner_assistant_id', 'cmf_ui_form', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_trigger', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_trigger_cmf_owner_assistant_id', 'cmf_trigger', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_trans_valid', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_trans_valid_cmf_owner_assistant_id', 'cmf_trans_valid', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_trans_filter', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_trans_filter_cmf_owner_assistant_id', 'cmf_trans_filter', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_trans_action', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_trans_action_cmf_owner_assistant_id', 'cmf_trans_action', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_trans', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_trans_cmf_owner_assistant_id', 'cmf_trans', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_time_tracker_history', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_time_tracker_history_cmf_owner_assistant_id', 'cmf_time_tracker_history', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_time_tracker', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_time_tracker_cmf_owner_assistant_id', 'cmf_time_tracker', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_tag_category', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_tag_category_cmf_owner_assistant_id', 'cmf_tag_category', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_tag', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_tag_cmf_owner_assistant_id', 'cmf_tag', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_subscription', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_subscription_cmf_owner_assistant_id', 'cmf_subscription', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_stock_outcoming_order_item', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_stock_outcoming_order_item_cmf_owner_assistant_id', 'cmf_stock_outcoming_order_item', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_stock_operation_item', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_stock_operation_item_cmf_owner_assistant_id', 'cmf_stock_operation_item', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_stock_operation', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_stock_operation_cmf_owner_assistant_id', 'cmf_stock_operation', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_stock_move_item', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_stock_move_item_cmf_owner_assistant_id', 'cmf_stock_move_item', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_stock_menu_group', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_stock_menu_group_cmf_owner_assistant_id', 'cmf_stock_menu_group', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_stock_item', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_stock_item_cmf_owner_assistant_id', 'cmf_stock_item', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_stock_inventory_item', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_stock_inventory_item_cmf_owner_assistant_id', 'cmf_stock_inventory_item', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_stock_initial_item', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_stock_initial_item_cmf_owner_assistant_id', 'cmf_stock_initial_item', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_stock_incoming_order_item', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_stock_incoming_order_item_cmf_owner_assistant_id', 'cmf_stock_incoming_order_item', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_stock', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_stock_cmf_owner_assistant_id', 'cmf_stock', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_status_opt', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_status_opt_cmf_owner_assistant_id', 'cmf_status_opt', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_status', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_status_cmf_owner_assistant_id', 'cmf_status', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_staff_control_settings', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_staff_control_settings_cmf_owner_assistant_id', 'cmf_staff_control_settings', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_sign', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_sign_cmf_owner_assistant_id', 'cmf_sign', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_scheme_wf_rule', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_scheme_wf_rule_cmf_owner_assistant_id', 'cmf_scheme_wf_rule', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_sale_menu_group', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_sale_menu_group_cmf_owner_assistant_id', 'cmf_sale_menu_group', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_role', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_role_cmf_owner_assistant_id', 'cmf_role', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_relation_type', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_relation_type_cmf_owner_assistant_id', 'cmf_relation_type', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_relation_option', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_relation_option_cmf_owner_assistant_id', 'cmf_relation_option', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_refbook', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_refbook_cmf_owner_assistant_id', 'cmf_refbook', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_product', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_product_cmf_owner_assistant_id', 'cmf_product', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_print_tmpl', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_print_tmpl_cmf_owner_assistant_id', 'cmf_print_tmpl', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_price', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_price_cmf_owner_assistant_id', 'cmf_price', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_plugin_zadarma', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_plugin_zadarma_cmf_owner_assistant_id', 'cmf_plugin_zadarma', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_plugin_trello', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_plugin_trello_cmf_owner_assistant_id', 'cmf_plugin_trello', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_plugin_telphin', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_plugin_telphin_cmf_owner_assistant_id', 'cmf_plugin_telphin', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_plugin_s_m_s_gate', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_plugin_s_m_s_gate_cmf_owner_assistant_id', 'cmf_plugin_s_m_s_gate', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_plugin_mail_box', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_plugin_mail_box_cmf_owner_assistant_id', 'cmf_plugin_mail_box', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_plugin_jira', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_plugin_jira_cmf_owner_assistant_id', 'cmf_plugin_jira', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_plugin_git', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_plugin_git_cmf_owner_assistant_id', 'cmf_plugin_git', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_plugin_csv', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_plugin_csv_cmf_owner_assistant_id', 'cmf_plugin_csv', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_plugin_confluence', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_plugin_confluence_cmf_owner_assistant_id', 'cmf_plugin_confluence', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_plugin_asana', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_plugin_asana_cmf_owner_assistant_id', 'cmf_plugin_asana', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_plugin', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_plugin_cmf_owner_assistant_id', 'cmf_plugin', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_plan', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_plan_cmf_owner_assistant_id', 'cmf_plan', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_person_var', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_person_var_cmf_owner_assistant_id', 'cmf_person_var', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_person_sign', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_person_sign_cmf_owner_assistant_id', 'cmf_person_sign', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_person_group', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_person_group_cmf_owner_assistant_id', 'cmf_person_group', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_person', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_person_cmf_owner_assistant_id', 'cmf_person', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_patch', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_patch_cmf_owner_assistant_id', 'cmf_patch', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_org_unit', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_org_unit_cmf_owner_assistant_id', 'cmf_org_unit', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_notify', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_notify_cmf_owner_assistant_id', 'cmf_notify', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_menu_tree_item', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_menu_tree_item_cmf_owner_assistant_id', 'cmf_menu_tree_item', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_menu_tree', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_menu_tree_cmf_owner_assistant_id', 'cmf_menu_tree', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_menu_item', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_menu_item_cmf_owner_assistant_id', 'cmf_menu_item', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_mailbox', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_mailbox_cmf_owner_assistant_id', 'cmf_mailbox', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_mail_template', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_mail_template_cmf_owner_assistant_id', 'cmf_mail_template', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_mail_signature', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_mail_signature_cmf_owner_assistant_id', 'cmf_mail_signature', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_logic_type', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_logic_type_cmf_owner_assistant_id', 'cmf_logic_type', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_link', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_link_cmf_owner_assistant_id', 'cmf_link', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_license', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_license_cmf_owner_assistant_id', 'cmf_license', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_lead_mailbox', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_lead_mailbox_cmf_owner_assistant_id', 'cmf_lead_mailbox', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_job', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_job_cmf_owner_assistant_id', 'cmf_job', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_invoice_items', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_invoice_items_cmf_owner_assistant_id', 'cmf_invoice_items', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_integration', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_integration_cmf_owner_assistant_id', 'cmf_integration', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_global_var', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_global_var_cmf_owner_assistant_id', 'cmf_global_var', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_global_settings', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_global_settings_cmf_owner_assistant_id', 'cmf_global_settings', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_git_repo', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_git_repo_cmf_owner_assistant_id', 'cmf_git_repo', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_git_merge_request', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_git_merge_request_cmf_owner_assistant_id', 'cmf_git_merge_request', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_git_commit', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_git_commit_cmf_owner_assistant_id', 'cmf_git_commit', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_git_branch', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_git_branch_cmf_owner_assistant_id', 'cmf_git_branch', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_gantt_task', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_gantt_task_cmf_owner_assistant_id', 'cmf_gantt_task', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_gantt_baseline', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_gantt_baseline_cmf_owner_assistant_id', 'cmf_gantt_baseline', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_form_field', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_form_field_cmf_owner_assistant_id', 'cmf_form_field', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_form', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_form_cmf_owner_assistant_id', 'cmf_form', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_filter', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_filter_cmf_owner_assistant_id', 'cmf_filter', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_document_history', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_document_history_cmf_owner_assistant_id', 'cmf_document_history', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_deal_items', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_deal_items_cmf_owner_assistant_id', 'cmf_deal_items', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_currency', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_currency_cmf_owner_assistant_id', 'cmf_currency', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_contract', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_contract_cmf_owner_assistant_id', 'cmf_contract', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_comment', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_comment_cmf_owner_assistant_id', 'cmf_comment', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_chat_message', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_chat_message_cmf_owner_assistant_id', 'cmf_chat_message', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_channel_message', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_channel_message_cmf_owner_assistant_id', 'cmf_channel_message', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_channel_call', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_channel_call_cmf_owner_assistant_id', 'cmf_channel_call', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_card', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_card_cmf_owner_assistant_id', 'cmf_card', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_balance_operation', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_balance_operation_cmf_owner_assistant_id', 'cmf_balance_operation', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_balance', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_balance_cmf_owner_assistant_id', 'cmf_balance', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_automation_crud_trigger', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_automation_crud_trigger_cmf_owner_assistant_id', 'cmf_automation_crud_trigger', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_automation_cron_trigger', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_automation_cron_trigger_cmf_owner_assistant_id', 'cmf_automation_cron_trigger', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_auth_plugin_data', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_auth_plugin_data_cmf_owner_assistant_id', 'cmf_auth_plugin_data', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_auth_ldap_plugin', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_auth_ldap_plugin_cmf_owner_assistant_id', 'cmf_auth_ldap_plugin', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_auth', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_auth_cmf_owner_assistant_id', 'cmf_auth', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_attachment', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_attachment_cmf_owner_assistant_id', 'cmf_attachment', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_activity', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_activity_cmf_owner_assistant_id', 'cmf_activity', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_active_entity_filter', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_active_entity_filter_cmf_owner_assistant_id', 'cmf_active_entity_filter', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_access_rule', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_access_rule_cmf_owner_assistant_id', 'cmf_access_rule', ['cmf_owner_assistant_id'], unique=False)
    op.add_column('cmf_access_list', sa.Column('cmf_owner_assistant_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_access_list_cmf_owner_assistant_id', 'cmf_access_list', ['cmf_owner_assistant_id'], unique=False)
    op.drop_index(op.f('ix_cmf_u_work_post_cmf_owner_assistants_root_id'), table_name='cmf_u_work_post_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_u_work_post_cmf_owner_assistants_right_id'), table_name='cmf_u_work_post_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_u_work_post_cmf_owner_assistants_parent_id'), table_name='cmf_u_work_post_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_u_work_post_cmf_owner_assistants_left_id'), table_name='cmf_u_work_post_cmf_owner_assistants')
    op.drop_table('cmf_u_work_post_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_task_report_cmf_owner_assistants_root_id'), table_name='cmf_task_report_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_task_report_cmf_owner_assistants_right_id'), table_name='cmf_task_report_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_task_report_cmf_owner_assistants_parent_id'), table_name='cmf_task_report_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_task_report_cmf_owner_assistants_left_id'), table_name='cmf_task_report_cmf_owner_assistants')
    op.drop_table('cmf_task_report_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_task_filter_cmf_owner_assistants_root_id'), table_name='cmf_task_filter_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_task_filter_cmf_owner_assistants_right_id'), table_name='cmf_task_filter_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_task_filter_cmf_owner_assistants_parent_id'), table_name='cmf_task_filter_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_task_filter_cmf_owner_assistants_left_id'), table_name='cmf_task_filter_cmf_owner_assistants')
    op.drop_table('cmf_task_filter_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_task_cmf_owner_assistants_root_id'), table_name='cmf_task_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_task_cmf_owner_assistants_right_id'), table_name='cmf_task_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_task_cmf_owner_assistants_parent_id'), table_name='cmf_task_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_task_cmf_owner_assistants_left_id'), table_name='cmf_task_cmf_owner_assistants')
    op.drop_table('cmf_task_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_outcoming_order_cmf_owner_assistants_root_id'), table_name='cmf_stock_outcoming_order_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_outcoming_order_cmf_owner_assistants_right_id'), table_name='cmf_stock_outcoming_order_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_outcoming_order_cmf_owner_assistants_parent_id'), table_name='cmf_stock_outcoming_order_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_outcoming_order_cmf_owner_assistants_left_id'), table_name='cmf_stock_outcoming_order_cmf_owner_assistants')
    op.drop_table('cmf_stock_outcoming_order_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_move_cmf_owner_assistants_root_id'), table_name='cmf_stock_move_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_move_cmf_owner_assistants_right_id'), table_name='cmf_stock_move_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_move_cmf_owner_assistants_parent_id'), table_name='cmf_stock_move_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_move_cmf_owner_assistants_left_id'), table_name='cmf_stock_move_cmf_owner_assistants')
    op.drop_table('cmf_stock_move_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_inventory_cmf_owner_assistants_root_id'), table_name='cmf_stock_inventory_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_inventory_cmf_owner_assistants_right_id'), table_name='cmf_stock_inventory_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_inventory_cmf_owner_assistants_parent_id'), table_name='cmf_stock_inventory_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_inventory_cmf_owner_assistants_left_id'), table_name='cmf_stock_inventory_cmf_owner_assistants')
    op.drop_table('cmf_stock_inventory_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_initial_cmf_owner_assistants_root_id'), table_name='cmf_stock_initial_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_initial_cmf_owner_assistants_right_id'), table_name='cmf_stock_initial_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_initial_cmf_owner_assistants_parent_id'), table_name='cmf_stock_initial_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_initial_cmf_owner_assistants_left_id'), table_name='cmf_stock_initial_cmf_owner_assistants')
    op.drop_table('cmf_stock_initial_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_incoming_order_cmf_owner_assistants_root_id'), table_name='cmf_stock_incoming_order_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_incoming_order_cmf_owner_assistants_right_id'), table_name='cmf_stock_incoming_order_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_incoming_order_cmf_owner_assistants_parent_id'), table_name='cmf_stock_incoming_order_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_stock_incoming_order_cmf_owner_assistants_left_id'), table_name='cmf_stock_incoming_order_cmf_owner_assistants')
    op.drop_table('cmf_stock_incoming_order_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_scheme_wf_cmf_owner_assistants_root_id'), table_name='cmf_scheme_wf_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_scheme_wf_cmf_owner_assistants_right_id'), table_name='cmf_scheme_wf_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_scheme_wf_cmf_owner_assistants_parent_id'), table_name='cmf_scheme_wf_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_scheme_wf_cmf_owner_assistants_left_id'), table_name='cmf_scheme_wf_cmf_owner_assistants')
    op.drop_table('cmf_scheme_wf_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_roadmap_cmf_owner_assistants_root_id'), table_name='cmf_roadmap_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_roadmap_cmf_owner_assistants_right_id'), table_name='cmf_roadmap_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_roadmap_cmf_owner_assistants_parent_id'), table_name='cmf_roadmap_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_roadmap_cmf_owner_assistants_left_id'), table_name='cmf_roadmap_cmf_owner_assistants')
    op.drop_table('cmf_roadmap_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_purchase_order_items_cmf_owner_assistants_root_id'), table_name='cmf_purchase_order_items_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_purchase_order_items_cmf_owner_assistants_right_id'), table_name='cmf_purchase_order_items_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_purchase_order_items_cmf_owner_assistants_parent_id'), table_name='cmf_purchase_order_items_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_purchase_order_items_cmf_owner_assistants_left_id'), table_name='cmf_purchase_order_items_cmf_owner_assistants')
    op.drop_table('cmf_purchase_order_items_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_purchase_order_cmf_owner_assistants_root_id'), table_name='cmf_purchase_order_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_purchase_order_cmf_owner_assistants_right_id'), table_name='cmf_purchase_order_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_purchase_order_cmf_owner_assistants_parent_id'), table_name='cmf_purchase_order_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_purchase_order_cmf_owner_assistants_left_id'), table_name='cmf_purchase_order_cmf_owner_assistants')
    op.drop_table('cmf_purchase_order_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_project_cmf_owner_assistants_root_id'), table_name='cmf_project_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_project_cmf_owner_assistants_right_id'), table_name='cmf_project_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_project_cmf_owner_assistants_parent_id'), table_name='cmf_project_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_project_cmf_owner_assistants_left_id'), table_name='cmf_project_cmf_owner_assistants')
    op.drop_table('cmf_project_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_pipeline_cmf_owner_assistants_root_id'), table_name='cmf_pipeline_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_pipeline_cmf_owner_assistants_right_id'), table_name='cmf_pipeline_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_pipeline_cmf_owner_assistants_parent_id'), table_name='cmf_pipeline_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_pipeline_cmf_owner_assistants_left_id'), table_name='cmf_pipeline_cmf_owner_assistants')
    op.drop_table('cmf_pipeline_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_payment_cmf_owner_assistants_root_id'), table_name='cmf_payment_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_payment_cmf_owner_assistants_right_id'), table_name='cmf_payment_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_payment_cmf_owner_assistants_parent_id'), table_name='cmf_payment_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_payment_cmf_owner_assistants_left_id'), table_name='cmf_payment_cmf_owner_assistants')
    op.drop_table('cmf_payment_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_mail_cmf_owner_assistants_root_id'), table_name='cmf_mail_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_mail_cmf_owner_assistants_right_id'), table_name='cmf_mail_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_mail_cmf_owner_assistants_parent_id'), table_name='cmf_mail_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_mail_cmf_owner_assistants_left_id'), table_name='cmf_mail_cmf_owner_assistants')
    op.drop_table('cmf_mail_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_list_cmf_owner_assistants_root_id'), table_name='cmf_list_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_list_cmf_owner_assistants_right_id'), table_name='cmf_list_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_list_cmf_owner_assistants_parent_id'), table_name='cmf_list_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_list_cmf_owner_assistants_left_id'), table_name='cmf_list_cmf_owner_assistants')
    op.drop_table('cmf_list_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_lead_cmf_owner_assistants_root_id'), table_name='cmf_lead_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_lead_cmf_owner_assistants_right_id'), table_name='cmf_lead_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_lead_cmf_owner_assistants_parent_id'), table_name='cmf_lead_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_lead_cmf_owner_assistants_left_id'), table_name='cmf_lead_cmf_owner_assistants')
    op.drop_table('cmf_lead_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_invoice_cmf_owner_assistants_root_id'), table_name='cmf_invoice_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_invoice_cmf_owner_assistants_right_id'), table_name='cmf_invoice_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_invoice_cmf_owner_assistants_parent_id'), table_name='cmf_invoice_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_invoice_cmf_owner_assistants_left_id'), table_name='cmf_invoice_cmf_owner_assistants')
    op.drop_table('cmf_invoice_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_import_cmf_owner_assistants_root_id'), table_name='cmf_import_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_import_cmf_owner_assistants_right_id'), table_name='cmf_import_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_import_cmf_owner_assistants_parent_id'), table_name='cmf_import_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_import_cmf_owner_assistants_left_id'), table_name='cmf_import_cmf_owner_assistants')
    op.drop_table('cmf_import_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_folder_cmf_owner_assistants_root_id'), table_name='cmf_folder_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_folder_cmf_owner_assistants_right_id'), table_name='cmf_folder_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_folder_cmf_owner_assistants_parent_id'), table_name='cmf_folder_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_folder_cmf_owner_assistants_left_id'), table_name='cmf_folder_cmf_owner_assistants')
    op.drop_table('cmf_folder_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_document_cmf_owner_assistants_root_id'), table_name='cmf_document_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_document_cmf_owner_assistants_right_id'), table_name='cmf_document_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_document_cmf_owner_assistants_parent_id'), table_name='cmf_document_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_document_cmf_owner_assistants_left_id'), table_name='cmf_document_cmf_owner_assistants')
    op.drop_table('cmf_document_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_deal_cmf_owner_assistants_root_id'), table_name='cmf_deal_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_deal_cmf_owner_assistants_right_id'), table_name='cmf_deal_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_deal_cmf_owner_assistants_parent_id'), table_name='cmf_deal_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_deal_cmf_owner_assistants_left_id'), table_name='cmf_deal_cmf_owner_assistants')
    op.drop_table('cmf_deal_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_dashboard_cmf_owner_assistants_root_id'), table_name='cmf_dashboard_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_dashboard_cmf_owner_assistants_right_id'), table_name='cmf_dashboard_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_dashboard_cmf_owner_assistants_parent_id'), table_name='cmf_dashboard_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_dashboard_cmf_owner_assistants_left_id'), table_name='cmf_dashboard_cmf_owner_assistants')
    op.drop_table('cmf_dashboard_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_company_cmf_owner_assistants_root_id'), table_name='cmf_company_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_company_cmf_owner_assistants_right_id'), table_name='cmf_company_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_company_cmf_owner_assistants_parent_id'), table_name='cmf_company_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_company_cmf_owner_assistants_left_id'), table_name='cmf_company_cmf_owner_assistants')
    op.drop_table('cmf_company_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_chat_topic_cmf_owner_assistants_root_id'), table_name='cmf_chat_topic_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_chat_topic_cmf_owner_assistants_right_id'), table_name='cmf_chat_topic_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_chat_topic_cmf_owner_assistants_parent_id'), table_name='cmf_chat_topic_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_chat_topic_cmf_owner_assistants_left_id'), table_name='cmf_chat_topic_cmf_owner_assistants')
    op.drop_table('cmf_chat_topic_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_chat_group_cmf_owner_assistants_root_id'), table_name='cmf_chat_group_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_chat_group_cmf_owner_assistants_right_id'), table_name='cmf_chat_group_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_chat_group_cmf_owner_assistants_parent_id'), table_name='cmf_chat_group_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_chat_group_cmf_owner_assistants_left_id'), table_name='cmf_chat_group_cmf_owner_assistants')
    op.drop_table('cmf_chat_group_cmf_owner_assistants')
    # ### end Alembic commands ###
