updated and removed unecesary files

This commit is contained in:
2025-03-25 14:56:11 +02:00
parent be11dbfc43
commit 74f5670f46
29 changed files with 63 additions and 740 deletions

View File

@@ -1,10 +1,7 @@
# drop_user_table.py
from app import app, db
def clear_database():
with app.app_context():
db.drop_all()
db.create_all()
print("Database cleared and structure recreated.")
if __name__ == '__main__':
clear_database()
with app.app_context():
db.drop_all()
print("Dropped all tables.")