"""add other models

Revision ID: 4649341d1a1c
Revises: ffdc0a98111c
Create Date: 2021-06-21 11:36:05.247672

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '4649341d1a1c'
down_revision = 'ffdc0a98111c'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('categories',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('name', sa.String(), nullable=False),
    sa.Column('years', sa.String(), nullable=False),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('orders',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('userId', sa.Integer(), nullable=False),
    sa.ForeignKeyConstraint(['userId'], ['users.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('products',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('quantity', sa.Integer(), nullable=False),
    sa.Column('price', sa.Integer(), nullable=False),
    sa.Column('name', sa.String(length=100), nullable=False),
    sa.Column('description', sa.Text(), nullable=True),
    sa.Column('imgURL', sa.String(length=255), nullable=False),
    sa.Column('userId', sa.Integer(), nullable=False),
    sa.Column('categoryId', sa.Integer(), nullable=False),
    sa.ForeignKeyConstraint(['categoryId'], ['categories.id'], ),
    sa.ForeignKeyConstraint(['userId'], ['users.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('reviews',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('rating', sa.Integer(), nullable=False),
    sa.Column('content', sa.Text(), nullable=False),
    sa.Column('userId', sa.Integer(), nullable=False),
    sa.Column('productId', sa.Integer(), nullable=False),
    sa.ForeignKeyConstraint(['productId'], ['products.id'], ),
    sa.ForeignKeyConstraint(['userId'], ['users.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('reviews')
    op.drop_table('products')
    op.drop_table('orders')
    op.drop_table('categories')
    # ### end Alembic commands ###

44da052db2ca089e0a58b48f0b24b664f0f3d2f7
<mask token>

<mask token>


def upgrade():
    op.create_table('categories', sa.Column('id', sa.Integer(), nullable=
        False), sa.Column('name', sa.String(), nullable=False), sa.Column(
        'years', sa.String(), nullable=False), sa.PrimaryKeyConstraint('id'))
    op.create_table('orders', sa.Column('id', sa.Integer(), nullable=False),
        sa.Column('userId', sa.Integer(), nullable=False), sa.
        ForeignKeyConstraint(['userId'], ['users.id']), sa.
        PrimaryKeyConstraint('id'))
    op.create_table('products', sa.Column('id', sa.Integer(), nullable=
        False), sa.Column('quantity', sa.Integer(), nullable=False), sa.
        Column('price', sa.Integer(), nullable=False), sa.Column('name', sa
        .String(length=100), nullable=False), sa.Column('description', sa.
        Text(), nullable=True), sa.Column('imgURL', sa.String(length=255),
        nullable=False), sa.Column('userId', sa.Integer(), nullable=False),
        sa.Column('categoryId', sa.Integer(), nullable=False), sa.
        ForeignKeyConstraint(['categoryId'], ['categories.id']), sa.
        ForeignKeyConstraint(['userId'], ['users.id']), sa.
        PrimaryKeyConstraint('id'))
    op.create_table('reviews', sa.Column('id', sa.Integer(), nullable=False
        ), sa.Column('rating', sa.Integer(), nullable=False), sa.Column(
        'content', sa.Text(), nullable=False), sa.Column('userId', sa.
        Integer(), nullable=False), sa.Column('productId', sa.Integer(),
        nullable=False), sa.ForeignKeyConstraint(['productId'], [
        'products.id']), sa.ForeignKeyConstraint(['userId'], ['users.id']),
        sa.PrimaryKeyConstraint('id'))


def downgrade():
    op.drop_table('reviews')
    op.drop_table('products')
    op.drop_table('orders')
    op.drop_table('categories')

<mask token>
revision = '4649341d1a1c'
down_revision = 'ffdc0a98111c'
branch_labels = None
depends_on = None


def upgrade():
    op.create_table('categories', sa.Column('id', sa.Integer(), nullable=
        False), sa.Column('name', sa.String(), nullable=False), sa.Column(
        'years', sa.String(), nullable=False), sa.PrimaryKeyConstraint('id'))
    op.create_table('orders', sa.Column('id', sa.Integer(), nullable=False),
        sa.Column('userId', sa.Integer(), nullable=False), sa.
        ForeignKeyConstraint(['userId'], ['users.id']), sa.
        PrimaryKeyConstraint('id'))
    op.create_table('products', sa.Column('id', sa.Integer(), nullable=
        False), sa.Column('quantity', sa.Integer(), nullable=False), sa.
        Column('price', sa.Integer(), nullable=False), sa.Column('name', sa
        .String(length=100), nullable=False), sa.Column('description', sa.
        Text(), nullable=True), sa.Column('imgURL', sa.String(length=255),
        nullable=False), sa.Column('userId', sa.Integer(), nullable=False),
        sa.Column('categoryId', sa.Integer(), nullable=False), sa.
        ForeignKeyConstraint(['categoryId'], ['categories.id']), sa.
        ForeignKeyConstraint(['userId'], ['users.id']), sa.
        PrimaryKeyConstraint('id'))
    op.create_table('reviews', sa.Column('id', sa.Integer(), nullable=False
        ), sa.Column('rating', sa.Integer(), nullable=False), sa.Column(
        'content', sa.Text(), nullable=False), sa.Column('userId', sa.
        Integer(), nullable=False), sa.Column('productId', sa.Integer(),
        nullable=False), sa.ForeignKeyConstraint(['productId'], [
        'products.id']), sa.ForeignKeyConstraint(['userId'], ['users.id']),
        sa.PrimaryKeyConstraint('id'))


def downgrade():
    op.drop_table('reviews')
    op.drop_table('products')
    op.drop_table('orders')
    op.drop_table('categories')

<mask token>
from alembic import op
import sqlalchemy as sa
revision = '4649341d1a1c'
down_revision = 'ffdc0a98111c'
branch_labels = None
depends_on = None


def upgrade():
    op.create_table('categories', sa.Column('id', sa.Integer(), nullable=
        False), sa.Column('name', sa.String(), nullable=False), sa.Column(
        'years', sa.String(), nullable=False), sa.PrimaryKeyConstraint('id'))
    op.create_table('orders', sa.Column('id', sa.Integer(), nullable=False),
        sa.Column('userId', sa.Integer(), nullable=False), sa.
        ForeignKeyConstraint(['userId'], ['users.id']), sa.
        PrimaryKeyConstraint('id'))
    op.create_table('products', sa.Column('id', sa.Integer(), nullable=
        False), sa.Column('quantity', sa.Integer(), nullable=False), sa.
        Column('price', sa.Integer(), nullable=False), sa.Column('name', sa
        .String(length=100), nullable=False), sa.Column('description', sa.
        Text(), nullable=True), sa.Column('imgURL', sa.String(length=255),
        nullable=False), sa.Column('userId', sa.Integer(), nullable=False),
        sa.Column('categoryId', sa.Integer(), nullable=False), sa.
        ForeignKeyConstraint(['categoryId'], ['categories.id']), sa.
        ForeignKeyConstraint(['userId'], ['users.id']), sa.
        PrimaryKeyConstraint('id'))
    op.create_table('reviews', sa.Column('id', sa.Integer(), nullable=False
        ), sa.Column('rating', sa.Integer(), nullable=False), sa.Column(
        'content', sa.Text(), nullable=False), sa.Column('userId', sa.
        Integer(), nullable=False), sa.Column('productId', sa.Integer(),
        nullable=False), sa.ForeignKeyConstraint(['productId'], [
        'products.id']), sa.ForeignKeyConstraint(['userId'], ['users.id']),
        sa.PrimaryKeyConstraint('id'))


def downgrade():
    op.drop_table('reviews')
    op.drop_table('products')
    op.drop_table('orders')
    op.drop_table('categories')

"""add other models

Revision ID: 4649341d1a1c
Revises: ffdc0a98111c
Create Date: 2021-06-21 11:36:05.247672

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '4649341d1a1c'
down_revision = 'ffdc0a98111c'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('categories',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('name', sa.String(), nullable=False),
    sa.Column('years', sa.String(), nullable=False),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('orders',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('userId', sa.Integer(), nullable=False),
    sa.ForeignKeyConstraint(['userId'], ['users.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('products',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('quantity', sa.Integer(), nullable=False),
    sa.Column('price', sa.Integer(), nullable=False),
    sa.Column('name', sa.String(length=100), nullable=False),
    sa.Column('description', sa.Text(), nullable=True),
    sa.Column('imgURL', sa.String(length=255), nullable=False),
    sa.Column('userId', sa.Integer(), nullable=False),
    sa.Column('categoryId', sa.Integer(), nullable=False),
    sa.ForeignKeyConstraint(['categoryId'], ['categories.id'], ),
    sa.ForeignKeyConstraint(['userId'], ['users.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('reviews',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('rating', sa.Integer(), nullable=False),
    sa.Column('content', sa.Text(), nullable=False),
    sa.Column('userId', sa.Integer(), nullable=False),
    sa.Column('productId', sa.Integer(), nullable=False),
    sa.ForeignKeyConstraint(['productId'], ['products.id'], ),
    sa.ForeignKeyConstraint(['userId'], ['users.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('reviews')
    op.drop_table('products')
    op.drop_table('orders')
    op.drop_table('categories')
    # ### end Alembic commands ###
