def upgrade():
    op.create_table('users', sa.Column('id', sa.Integer(), nullable=False), sa.Column('created_at', sa.DateTime(timezone=True), nullable=True), sa.Column('updated_at', sa.DateTime(timezone=True), nullable=True), sa.Column('username', sa.String(length=50), nullable=True), sa.Column('handle', sa.String(length=25), nullable=True), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('handle'), sa.UniqueConstraint('id'))
    op.create_table('post', sa.Column('id', sa.Integer(), nullable=False), sa.Column('created_at', sa.DateTime(timezone=True), nullable=True), sa.Column('updated_at', sa.DateTime(timezone=True), nullable=True), sa.Column('user_id', sa.Integer(), nullable=True), sa.Column('img_name', sa.String(length=100), nullable=True), sa.Column('caption', sa.String(length=250), nullable=True), sa.ForeignKeyConstraint(['user_id'], ['users.id']), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('id'), sa.UniqueConstraint('img_name'))
    op.create_table('comment', sa.Column('id', sa.Integer(), nullable=False), sa.Column('created_at', sa.DateTime(timezone=True), nullable=True), sa.Column('updated_at', sa.DateTime(timezone=True), nullable=True), sa.Column('post_id', sa.Integer(), nullable=True), sa.Column('user', sa.String(length=50), nullable=True), sa.Column('text', sa.String(length=100), nullable=True), sa.ForeignKeyConstraint(['post_id'], ['post.id']), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('id'))
def upgrade():
    op.create_table('users', sa.Column('id', sa.Integer(), nullable=False), sa.Column('created_at', sa.DateTime(timezone=True), nullable=True), sa.Column('updated_at', sa.DateTime(timezone=True), nullable=True), sa.Column('username', sa.String(length=50), nullable=True), sa.Column('handle', sa.String(length=25), nullable=True), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('handle'), sa.UniqueConstraint('id'))
    op.create_table('post', sa.Column('id', sa.Integer(), nullable=False), sa.Column('created_at', sa.DateTime(timezone=True), nullable=True), sa.Column('updated_at', sa.DateTime(timezone=True), nullable=True), sa.Column('user_id', sa.Integer(), nullable=True), sa.Column('img_name', sa.String(length=100), nullable=True), sa.Column('caption', sa.String(length=250), nullable=True), sa.ForeignKeyConstraint(['user_id'], ['users.id']), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('id'), sa.UniqueConstraint('img_name'))
    op.create_table('comment', sa.Column('id', sa.Integer(), nullable=False), sa.Column('created_at', sa.DateTime(timezone=True), nullable=True), sa.Column('updated_at', sa.DateTime(timezone=True), nullable=True), sa.Column('post_id', sa.Integer(), nullable=True), sa.Column('user', sa.String(length=50), nullable=True), sa.Column('text', sa.String(length=100), nullable=True), sa.ForeignKeyConstraint(['post_id'], ['post.id']), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('id'))