"""idk

Revision ID: de95c2c41444
Revises: 34a88a00ed32
Create Date: 2021-06-03 13:57:25.134411

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'de95c2c41444'
down_revision = '34a88a00ed32'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('cart',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('user_id', sa.Integer(), nullable=False),
    sa.Column('product_id', sa.Integer(), nullable=False),
    sa.Column('date_added', sa.DateTime(), nullable=True),
    sa.ForeignKeyConstraint(['product_id'], ['product.id'], ),
    sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    op.alter_column('order', 'user_id',
               existing_type=sa.INTEGER(),
               nullable=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('order', 'user_id',
               existing_type=sa.INTEGER(),
               nullable=True)
    op.drop_table('cart')
    # ### end Alembic commands ###

b3396f3002cbc8f8d435f8e0e28f511d5a221dfb
<mask token>


def upgrade():
    op.create_table('cart', sa.Column('id', sa.Integer(), nullable=False),
        sa.Column('user_id', sa.Integer(), nullable=False), sa.Column(
        'product_id', sa.Integer(), nullable=False), sa.Column('date_added',
        sa.DateTime(), nullable=True), sa.ForeignKeyConstraint([
        'product_id'], ['product.id']), sa.ForeignKeyConstraint(['user_id'],
        ['user.id']), sa.PrimaryKeyConstraint('id'))
    op.alter_column('order', 'user_id', existing_type=sa.INTEGER(),
        nullable=False)


<mask token>

<mask token>


def upgrade():
    op.create_table('cart', sa.Column('id', sa.Integer(), nullable=False),
        sa.Column('user_id', sa.Integer(), nullable=False), sa.Column(
        'product_id', sa.Integer(), nullable=False), sa.Column('date_added',
        sa.DateTime(), nullable=True), sa.ForeignKeyConstraint([
        'product_id'], ['product.id']), sa.ForeignKeyConstraint(['user_id'],
        ['user.id']), sa.PrimaryKeyConstraint('id'))
    op.alter_column('order', 'user_id', existing_type=sa.INTEGER(),
        nullable=False)


def downgrade():
    op.alter_column('order', 'user_id', existing_type=sa.INTEGER(),
        nullable=True)
    op.drop_table('cart')

<mask token>
revision = 'de95c2c41444'
down_revision = '34a88a00ed32'
branch_labels = None
depends_on = None


def upgrade():
    op.create_table('cart', sa.Column('id', sa.Integer(), nullable=False),
        sa.Column('user_id', sa.Integer(), nullable=False), sa.Column(
        'product_id', sa.Integer(), nullable=False), sa.Column('date_added',
        sa.DateTime(), nullable=True), sa.ForeignKeyConstraint([
        'product_id'], ['product.id']), sa.ForeignKeyConstraint(['user_id'],
        ['user.id']), sa.PrimaryKeyConstraint('id'))
    op.alter_column('order', 'user_id', existing_type=sa.INTEGER(),
        nullable=False)


def downgrade():
    op.alter_column('order', 'user_id', existing_type=sa.INTEGER(),
        nullable=True)
    op.drop_table('cart')

<mask token>
from alembic import op
import sqlalchemy as sa
revision = 'de95c2c41444'
down_revision = '34a88a00ed32'
branch_labels = None
depends_on = None


def upgrade():
    op.create_table('cart', sa.Column('id', sa.Integer(), nullable=False),
        sa.Column('user_id', sa.Integer(), nullable=False), sa.Column(
        'product_id', sa.Integer(), nullable=False), sa.Column('date_added',
        sa.DateTime(), nullable=True), sa.ForeignKeyConstraint([
        'product_id'], ['product.id']), sa.ForeignKeyConstraint(['user_id'],
        ['user.id']), sa.PrimaryKeyConstraint('id'))
    op.alter_column('order', 'user_id', existing_type=sa.INTEGER(),
        nullable=False)


def downgrade():
    op.alter_column('order', 'user_id', existing_type=sa.INTEGER(),
        nullable=True)
    op.drop_table('cart')

"""idk

Revision ID: de95c2c41444
Revises: 34a88a00ed32
Create Date: 2021-06-03 13:57:25.134411

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'de95c2c41444'
down_revision = '34a88a00ed32'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('cart',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('user_id', sa.Integer(), nullable=False),
    sa.Column('product_id', sa.Integer(), nullable=False),
    sa.Column('date_added', sa.DateTime(), nullable=True),
    sa.ForeignKeyConstraint(['product_id'], ['product.id'], ),
    sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    op.alter_column('order', 'user_id',
               existing_type=sa.INTEGER(),
               nullable=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('order', 'user_id',
               existing_type=sa.INTEGER(),
               nullable=True)
    op.drop_table('cart')
    # ### end Alembic commands ###
