from pathlib import Path

BASE_DIR = Path(__file__).resolve().parent.parent

DEFAULT_SYNC_INTERVAL_MINUTES = 30

INSTANCE_DIR = BASE_DIR / "instance"
INSTANCE_DIR.mkdir(exist_ok=True)

DB_PATH = INSTANCE_DIR / "frota.db"
DATABASE_URL = f"sqlite:///{DB_PATH}"

METERS_PER_MILE = 1609.344
