"""
Config for Cin7 Sync
"""
import os

# MySQL Database (from bathroom.sql schema)
DB_CONFIG = {
    "host": os.getenv("DB_HOST", "2406:da1c:47e:b000:65e0:8631:84:5cb9"),
    "port": int(os.getenv("DB_PORT", "3306")),
    "user": os.getenv("DB_USER", "bathroom"),
    "password": os.getenv("DB_PASSWORD", "123456"),
    "database": os.getenv("DB_NAME", "87DTSn8jH22jpFsw"),
    "charset": "utf8mb4",
}

# Cin7 API
CIN7_BASE_URL = "https://api.cin7.com/api"
CIN7_USERNAME = os.getenv("CIN7_USERNAME", "ACATrading2AU")
CIN7_PASSWORD = os.getenv("CIN7_PASSWORD", "56170787329040fe90b949d72961")  # TODO: update real pwd

# yudao tenant_id (from member_user table)
TENANT_ID = 0

# Debug
DEBUG = os.getenv("DEBUG", "1") == "1"