// kosodate_shien_system — 画面固有設定（app-core.js が window.SYSTEM_CONFIG を読む）
window.SYSTEM_CONFIG = {
  domains: [
  { id: "childcare-users", label: "利用登録者", endpoint: "/api/childcare-users",
    cols: [{ key: "parentName", label: "保護者氏名" }, { key: "childName", label: "児童氏名" }, { key: "childBirthDate", label: "児童生年月日" }, { key: "address", label: "住所" }, { key: "status", label: "状態", badge: true }],
    createFields: [{ name: "parentName", label: "保護者氏名", required: true, placeholder: "山田 花子" }, { name: "childName", label: "児童氏名", required: true, placeholder: "山田 太郎" }, { name: "childBirthDate", label: "児童生年月日", required: true, type: "date" }, { name: "address", label: "住所", placeholder: "東京都..." }] },
  { id: "childcare-applications", label: "保育所入所申請", endpoint: "/api/childcare-applications",
    cols: [{ key: "userId", label: "利用者ID" }, { key: "facilityName", label: "希望施設" }, { key: "desiredStartDate", label: "希望開始日" }, { key: "status", label: "状態", badge: true }, { key: "createdAt", label: "申請日時" }],
    createFields: [{ name: "userId", label: "利用者ID", required: true, placeholder: "登録済み利用者のIDを入力" }, { name: "facilityName", label: "希望施設名", required: true, placeholder: "○○保育所" }, { name: "desiredStartDate", label: "希望開始日", required: true, type: "date" }] },
],
  calc: { title: "保育料の試算", endpoint: "/api/childcare/fee", primary: { key: "fee", label: "保育料（月額）", format: "yen" }, fields: [ { key: "taxIncomeLevy", label: "市町村民税所得割額（円）", type: "number", placeholder: "100000" }, { key: "ageClass", label: "年齢区分", type: "select", options: [ { value: "under3", label: "3歳未満" }, { value: "over3", label: "3歳以上" } ] }, { key: "standardTime", label: "保育時間", type: "select", options: [ { value: true, label: "標準時間" }, { value: false, label: "短時間" } ] }, { key: "childOrder", label: "きょうだいの順位", type: "number", default: 1 } ] },
};
