def METHOD_NAME():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table(
        'annotations_on_spectra',
        sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
        sa.Column('created_at', sa.DateTime(), nullable=False),
        sa.Column('modified', sa.DateTime(), nullable=False),
        sa.Column('data', postgresql.JSONB(astext_type=sa.Text()), nullable=False),
        sa.Column('origin', sa.String(), nullable=False),
        sa.Column('spectrum_id', sa.Integer(), nullable=False),
        sa.Column('author_id', sa.Integer(), nullable=False),
        sa.Column('obj_id', sa.String(), nullable=False),
        sa.ForeignKeyConstraint(['author_id'], ['users.id'], ondelete='CASCADE'),
        sa.ForeignKeyConstraint(['obj_id'], ['objs.id'], ondelete='CASCADE'),
        sa.ForeignKeyConstraint(['spectrum_id'], ['spectra.id'], ondelete='CASCADE'),
        sa.PrimaryKeyConstraint('id'),
        sa.UniqueConstraint('spectrum_id', 'origin'),
    )
    op.create_index(
        op.f('ix_annotations_on_spectra_author_id'),
        'annotations_on_spectra',
        ['author_id'],
        unique=False,
    )
    op.create_index(
        op.f('ix_annotations_on_spectra_created_at'),
        'annotations_on_spectra',
        ['created_at'],
        unique=False,
    )
    op.create_index(
        op.f('ix_annotations_on_spectra_obj_id'),
        'annotations_on_spectra',
        ['obj_id'],
        unique=False,
    )
    op.create_index(
        op.f('ix_annotations_on_spectra_origin'),
        'annotations_on_spectra',
        ['origin'],
        unique=False,
    )
    op.create_index(
        op.f('ix_annotations_on_spectra_spectrum_id'),
        'annotations_on_spectra',
        ['spectrum_id'],
        unique=False,
    )
    op.create_table(
        'group_annotations_on_spectra',
        sa.Column('created_at', sa.DateTime(), nullable=False),
        sa.Column('modified', sa.DateTime(), nullable=False),
        sa.Column('id', sa.Integer(), nullable=False),
        sa.Column('group_id', sa.Integer(), nullable=False),
        sa.Column('annotations_on_spectr_id', sa.Integer(), nullable=False),
        sa.ForeignKeyConstraint(
            ['annotations_on_spectr_id'],
            ['annotations_on_spectra.id'],
            ondelete='CASCADE',
        ),
        sa.ForeignKeyConstraint(['group_id'], ['groups.id'], ondelete='CASCADE'),
        sa.PrimaryKeyConstraint('id'),
    )
    op.create_index(
        'group_annotations_on_spectra_forward_ind',
        'group_annotations_on_spectra',
        ['group_id', 'annotations_on_spectr_id'],
        unique=True,
    )
    op.create_index(
        'group_annotations_on_spectra_reverse_ind',
        'group_annotations_on_spectra',
        ['annotations_on_spectr_id', 'group_id'],
        unique=False,
    )
    op.create_index(
        op.f('ix_group_annotations_on_spectra_created_at'),
        'group_annotations_on_spectra',
        ['created_at'],
        unique=False,
    )
    # ### end Alembic commands ###