from app.core.database import engine from app.models.favorite import Favorite def reset_favorites(): # Only drop favorites table print("Dropping favorites table...") Favorite.__table__.drop(engine, checkfirst=True) print("Creating favorites table...") Favorite.__table__.create(engine) print("Done.") if __name__ == "__main__": reset_favorites()