feat(auth): implement user plans and credits system with related endpoints
This commit is contained in:
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user