
import asyncio
import sys
import os

# Ensure backend module can be found
sys.path.append(os.path.abspath("backend"))

from app.database import init_db

async def main():
    print("Initializing database...")
    try:
        await init_db()
        print("Database initialized successfully.")
    except Exception as e:
        print(f"Error initializing database: {e}")

if __name__ == "__main__":
    asyncio.run(main())
