import type { Customer } from "@/lib/types";
/**
* 屋号(`customers`)のサンプルデータ(指示書AK 段階1)
*
* ★ 実在の法人名・屋号は絶対に入れないこと(docs/fixtures.md)★
*
* ★★`group_id` は API の形(`null` = 所属なし)で持つ★★ —
* fixtures は「DBの行」ではなく「APIが返す形」を持つ約束
* (`lib/fixtures/facilities.ts` が `contract` 文字列ではなく
* `monitoring_enabled` / `d_security_enabled` を持っているのと同じ)。
* ★fixtures に `group_id: 0` を書かないこと★ — 0 → null の変換を知っているのは
* `lib/format/group-id.ts` だけ(指示書AK §4-4)。
*
* 網羅しているケース
* - 同一ホールディングスに2社(id=1 / id=2 → group 1)
* ★グループ単位の確定期間KPIが 422 になる側★(段階6 の 6-7)
* - 1社だけのホールディングス(id=3 → group 2)★422 にならない側★(6-6)
* - ★ホールディングスなし(id=4 → `group_id: null`)★
* TeamWorks 照会中の Q7-5(屋号が無い顧客はどの段が空くか)とは別物で、
* こちらは「屋号はあるがホールディングスに属さない運営会社」を表す。
*
* ★★施設 → 屋号 の割り当てはここには無い★★(指示書AK 段階5)—
* 段階1 で暫定的に置いていた `customerIdByFacilityId` は、★`Facility` が
* `customer_id` / `customer_name` / `group_id` / `group_name` を持つようになったので
* `lib/fixtures/facilities.ts` へ移した★。★同じ割り当てを2箇所に持たないこと★。
*/
export const customers: Customer[] = [
{ id: 1, customer_name: "メガバリューマート", group_id: 1 },
{ id: 2, customer_name: "バリューマート", group_id: 1 },
{ id: 3, customer_name: "フレッシュタウン", group_id: 2 },
{ id: 4, customer_name: "フレッシュタウン湖畔", group_id: null },
];