def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.create_table('pending_ride',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('uid', sa.String(), nullable=True),
sa.Column('user_integration_id', sa.Integer(), nullable=False),
sa.Column('start_coord', postgresql.JSON(), nullable=True),
sa.Column('end_coord', postgresql.JSON(), nullable=True),
sa.Column('fare', sa.Numeric(), nullable=True),
sa.Column('meta', postgresql.JSON(), nullable=True),
sa.Column('status', sa.Integer(), nullable=False),
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('is_destroyed', sa.Boolean(), server_default='f', nullable=True),
sa.PrimaryKeyConstraint('id')
)
op.create_index(op.f('ix_pending_ride_uid'), 'pending_ride', ['uid'], unique=False)
### end Alembic commands ###
评论列表
文章目录