from sqlalchemy import inspect
from app.core.database import engine

def inspect_db():
    inspector = inspect(engine)
    if 'favorites' in inspector.get_table_names():
        print("Table 'favorites' exists.")
        columns = inspector.get_columns('favorites')
        for column in columns:
            print(f"Column: {column['name']}, Type: {column['type']}")
    else:
        print("Table 'favorites' does NOT exist.")

if __name__ == "__main__":
    inspect_db()
