from app import create_app, db

app = create_app()
with app.app_context():
    # Check what tables exist before dropping
    from sqlalchemy import inspect
    inspector = inspect(db.engine)
    tables_before = inspector.get_table_names()
    print(f'Tables before dropping: {tables_before}')
    
    # Drop all tables
    db.drop_all()
    print('All tables dropped')
    
    # Check what tables exist after dropping
    inspector = inspect(db.engine)
    tables_after = inspector.get_table_names()
    print(f'Tables after dropping: {tables_after}')