import os
import sys

sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from backend.database import init_db


def main() -> None:
    os.makedirs("data", exist_ok=True)
    init_db()
    print("Database initialized successfully.")


if __name__ == "__main__":
    main()
