feat(auth): implement user plans and credits system with related endpoints

This commit is contained in:
JSC
2025-06-29 16:40:54 +02:00
parent 52c60db811
commit 91648a858e
10 changed files with 334 additions and 63 deletions

View File

@@ -13,7 +13,8 @@ cli = FlaskGroup(app)
def init_db():
"""Initialize the database."""
print("Initializing database...")
db.create_all()
from app.database_init import init_database
init_database()
print("Database initialized successfully!")
@cli.command()
@@ -21,7 +22,8 @@ def reset_db():
"""Reset the database (drop all tables and recreate)."""
print("Resetting database...")
db.drop_all()
db.create_all()
from app.database_init import init_database
init_database()
print("Database reset successfully!")
if __name__ == "__main__":