import pandas as pd
from pathlib import Path

DATA_DIR = Path(__file__).resolve().parents[1] / "data"

def load_csv(name: str) -> pd.DataFrame:
    return pd.read_csv(DATA_DIR / name)

def load_all():
    return {
        "warehouses": load_csv("warehouses.csv"),
        "skus": load_csv("skus.csv"),
        "inventory": load_csv("inventory.csv"),
        "orders": load_csv("orders.csv"),
        "order_lines": load_csv("order_lines.csv"),
        "order_status": load_csv("order_status.csv"),
    }
