Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /iamumarjaved_FastGenAPI /alembic /versions /64317e244acc_initial_migration.py
| """Initial migration | |
| Revision ID: 64317e244acc | |
| Revises: | |
| Create Date: 2024-10-08 15:42:04.723892 | |
| """ | |
| from typing import Sequence, Union | |
| from alembic import op | |
| import sqlalchemy as sa | |
| # revision identifiers, used by Alembic. | |
| revision: str = '64317e244acc' | |
| down_revision: Union[str, None] = None | |
| branch_labels: Union[str, Sequence[str], None] = None | |
| depends_on: Union[str, Sequence[str], None] = None | |
| def upgrade() -> None: | |
| # ### commands auto generated by Alembic - please adjust! ### | |
| op.create_table('users', | |
| sa.Column('id', sa.Integer(), nullable=False), | |
| sa.Column('email', sa.String(), nullable=True), | |
| sa.Column('hashed_password', sa.String(), nullable=True), | |
| sa.Column('is_active', sa.Boolean(), nullable=True), | |
| sa.Column('is_admin', sa.Boolean(), nullable=True), | |
| sa.PrimaryKeyConstraint('id') | |
| ) | |
| op.create_index(op.f('ix_users_email'), 'users', ['email'], unique=True) | |
| op.create_index(op.f('ix_users_id'), 'users', ['id'], unique=False) | |
| # ### end Alembic commands ### | |
| def downgrade() -> None: | |
| # ### commands auto generated by Alembic - please adjust! ### | |
| op.drop_index(op.f('ix_users_id'), table_name='users') | |
| op.drop_index(op.f('ix_users_email'), table_name='users') | |
| op.drop_table('users') | |
| # ### end Alembic commands ### | |
Xet Storage Details
- Size:
- 1.3 kB
- Xet hash:
- 5d8fbc04ae9ea113d4a652fcb6f5a8115ba8e40ab2bbb7dcd0da60f98071809d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.