def upgrade():
    list_type_table = op.create_table('list_type', sa.Column('id', sa.
        Integer(), nullable=False), sa.Column('name', sa.String(length=80),
        nullable=False), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint
        ('name'))
op.create_table('job', sa.Column('id', sa.Integer(), nullable=False), sa.
    Column('list_type_id', sa.Integer(), nullable=False), sa.Column(
    'record_count', sa.Integer(), nullable=False), sa.Column('status', sa.
    Integer(), nullable=False), sa.Column('sf_job_id', sa.Integer(),
    nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False),
    sa.Column('compressed_csv', sa.LargeBinary(), nullable=True), sa.
    ForeignKeyConstraint(['list_type_id'], ['list_type.id']), sa.
    PrimaryKeyConstraint('id'))
op.bulk_insert(list_type_table, [{'name': 'best list'}, {'name':
    'bester list'}])

def downgrade():
    op.drop_table('job')
op.drop_table('list_type')
Creating seed data in a flask-migrate or alembic migration