SPEC-ERD-GRP Rev 0.6.0 · 2026-08-18

Cane Agency · ERD Seriesสถาบันอ้อย · ชุดเอกสาร ERD

Entity Model — Factory Groups (กลุ่มโรงงาน)แบบจำลอง entity — กลุ่มโรงงาน

Documentเอกสาร
SPEC-ERD-GRP
Versionversion (เวอร์ชัน)
0.6.0
Scopeขอบเขต
grp · factory_group
Surfaceช่องทางใช้งาน
group (group capacity — the thirteenth surfacecapacity group — surface ที่สิบสาม)
Updatedปรับปรุงล่าสุด
2026-08-18
Masterเอกสารหลัก
SPEC-ERD

1. Scope1. ขอบเขต

The factory_group context owns thirteen entities in three layers — the legal layer (D-2), the consolidation layer over PROP-023's member books, and the directory layer (D-3/D-4) that extends the applied federation identity model. Attribute names here are canonical for apps/ implementation.

context factory_group เป็นเจ้าของ 13 entity ในสามชั้น — ชั้นกฎหมาย (D-2) ชั้นการรวมบัญชีบนสมุดบัญชีสมาชิกของ PROP-023 และชั้นไดเรกทอรี (D-3/D-4) ที่ขยาย model อัตลักษณ์ federation ที่ใช้แล้ว ชื่อ attribute ที่นี่เป็นบรรทัดฐานสำหรับการพัฒนาใน apps/

2. Owned entities2. entity ที่เป็นเจ้าของ

2.1 Legal layer (D-2)2.1 ชั้นกฎหมาย (D-2)

EntityentityAttributesattributeRulesกติกา
Departmententity_id · legal_name · registration_no · tax_id · entity_role · base_province · statusThe company, distinct from the factory. entity_role: operating | holding | parent. One entity may own several mill tenants (L-1 branches) or each mill may be its own entity (L-2/L-3).บริษัท ต่างจากโรงงาน entity_role: operating | holding | parent หนึ่งนิติบุคคลเป็นเจ้าของ tenant โรงงานหลายแห่งได้ (สาขาแบบ L-1) หรือแต่ละโรงเป็นนิติบุคคลของตน (L-2/L-3)
OwnershipEdgeedge_id · from_entity_id · to_entity_id · pct_voting · pct_economic? · effective_from · effective_to? · evidence_refA dated directed edge. Control is DERIVED from the graph, never typed in; evidence required on every edge in the control path (FR-210/211).เส้นทิศทางที่มีวันที่ อำนาจควบคุมคำนวณจากกราฟ ไม่ใช่กรอกมือ; ต้องมีหลักฐานทุกเส้นในเส้นทางควบคุม (FR-210/211)

2.2 Group & consolidation layer2.2 ชั้นกลุ่มและการรวมบัญชี

EntityentityAttributesattributeRulesกติกา
FactoryGroupgroup_id · tenant_id · legal_name · brand_name? · apex_entity_id · ubo_ref · control_basis · group_type · root_department_path · directory_state · status · verified_by? · verified_at? · attested_at? · entitlement_statecontrol_basis: shareholding | contract | same_ubo. group_type is DERIVED: single_entity | parent_subsidiary | mixed. status: pending | verified | suspended | dissolved. tenant_id is the group Tenant (capacity group) and root_department_path its root department.control_basis: shareholding | contract | same_ubo group_type คำนวณ: single_entity | parent_subsidiary | mixed status: pending | verified | suspended | dissolved tenant_id คือ Tenant ของกลุ่ม (capacity group) และ root_department_path คือหน่วยงานรากของมัน
GroupMembershipgroup_membership_id · group_id · mill_id · effective_from · effective_to? · admission_evidence_ref · admitted_by · exit_reason?UNIQUE (mill_id) over OPEN intervals — one group at a time; overlaps rejected, never merged. The interval clips every group read (G5).UNIQUE (mill_id) บนช่วงที่เปิด — หนึ่งกลุ่มในเวลาหนึ่ง; ทับซ้อนถูกปฏิเสธ ไม่รวมกัน ช่วงนี้ตัดทุกการอ่านของกลุ่ม (G5)
GroupChartMapmap_id · group_id · version · member_account_id · group_line · effective_from · effective_to? · statusMember LedgerAccount → group reporting line, versioned and dated. Unmapped accounts land in a visible line that BLOCKS publication (FR-200).LedgerAccount ของสมาชิก → บรรทัดรายงานของกลุ่ม มีเวอร์ชันและวันที่ บัญชีที่ยังไม่ได้ map ลงบรรทัดที่มองเห็นได้ และ block การเผยแพร่ (FR-200)
InterCompanyRulerule_id · group_id · mill_id_a · mill_id_b · rule_kind · match_basis · version · statusrule_kind: sale | service | funding | transfer. L-1 eliminates at cost; L-2/L-3 at invoiced amounts. Unmatched pairs surface as exceptions, never a silent plug.rule_kind: sale | service | funding | transfer L-1 ตัดตามราคาทุน; L-2/L-3 ตามยอดใบกำกับ คู่ที่จับไม่ได้แสดงเป็นข้อยกเว้น ไม่ใช่การอุดเงียบ
GroupPeriodgroup_period_id · group_id · label · starts_on · ends_on · member_period_refs · statusThe union of member FiscalPeriods with the same calendar bounds; provisional while any member period is open (FR-202).การรวม FiscalPeriod ของสมาชิกที่มีขอบปฏิทินเดียวกัน; เป็น provisional ระหว่างที่ยังมีงวดสมาชิกเปิดอยู่ (FR-202)
GroupConsolidationrun_id · group_id · group_period_id · run_grade · inputs_snapshot_ref · map_version · rule_version · topology_basis · run_by · run_at · published_at? · statusOne IMMUTABLE run. run_grade: provisional | final; topology_basis: branch_combination | consolidation | mixed. Identical inputs must reproduce byte-identical output (NFR-64).การรันที่เปลี่ยนไม่ได้หนึ่งครั้ง run_grade: provisional | final; topology_basis: branch_combination | consolidation | mixed ปัจจัยเดิมต้องได้ผลเหมือนกันทุก byte (NFR-64)
ConsolidationLineline_id · run_id · group_line · mill_id? · amount · elimination_flag · unmapped_flag · nci_flagPer-factory columns (mill_id set) and the group total (null). Money in baht, 2 dp (A-43).คอลัมน์รายโรงงาน (มี mill_id) และยอดรวมกลุ่ม (null) เงินเป็นบาท ทศนิยม 2 ตำแหน่ง (A-43)

2.3 Directory layer (D-3/D-4)2.3 ชั้นไดเรกทอรี (D-3/D-4)

EntityentityAttributesattributeRulesกติกา
Department moved to SPEC-ERD-FEDdepartment_id · tenant_id · parent_department_id? · department_path · legal_form? · legal_name? · registration_no? · tax_id? · entity_role? · statuslegal_form: null = internal unit, otherwise a legalForms row — the retired kind: root | tier | site. A site department operates one factory (1:1 with the mill). NO TIER CAP (v0.47.0, PROP-073 — carrying R-DEPTH/FR-395, which PROP-075 applied while this row still printed the withdrawn cap): any department may hold children; depth is unbounded in the model and bounded operationally at 8 levels, exceeding it a refusal stating the depth and the offending parent. The immutable department_id is the identity; department_path is for humans.legal_form: null = internal unit, otherwise a legalForms row — the retired kind: root | tier | site หน่วยงานประจำสถานที่คือโรงงานหนึ่งแห่ง (1:1 กับ Tenant ของโรงงาน); สูงสุดสามชั้น; หน่วยงานประจำสถานที่ไม่มีลูก (OQ-14) department_id ที่เปลี่ยนไม่ได้คืออัตลักษณ์; department_path ไว้ให้คนอ่าน
DirectoryGroupgroup_dir_id · tenant_id · name · owner_department_id · nested_in? · statusThe security group. Nesting ONE level; may span tiers; owned by exactly one department so revocation always has an address (OQ-16). One built-in per root: grp_enterprise_admin.กลุ่มความปลอดภัย ซ้อนได้หนึ่งชั้น; ครอบต่างชั้นได้; มีหน่วยงานเจ้าของหนึ่งเดียว การเพิกถอนจึงมีที่อยู่เสมอ (OQ-16) มีในตัวหนึ่งกลุ่มต่อราก: grp_enterprise_admin
DirectoryGroupMemberdir_member_id · group_dir_id · membership_id · effective_from · effective_to? · added_byTime-boundable for seasonal staff (FR-215); adding a member to the built-in administrators group is four-eyes and disclosed at every member factory.กำหนดช่วงเวลาได้สำหรับพนักงานตามฤดู (FR-215); การเพิ่มสมาชิกในกลุ่มผู้ดูแลในตัวใช้สี่ตาและเปิดเผยที่โรงงานสมาชิกทุกแห่ง
DirectoryGrantgrant_id · group_dir_id · surface · role_id · department_id? · department_path_pattern? · allowed · granted_by · granted_at · four_eyes_ref? · statusallowed: allow | deny — an explicit deny at any level overrides every allow. Four-eyes for amount-bearing keys; transactional keys cannot be granted across departments at all (department_delegable = false).allowed: allow | deny — การปฏิเสธที่ระบุชัดในชั้นใดก็ชนะการอนุญาตทั้งหมด สี่ตาสำหรับกุญแจที่มีตัวเงิน; กุญแจเชิงรายการมอบข้ามหน่วยงานไม่ได้เลย (department_delegable = false)

3. Amended applied entities3. entity ที่ใช้แล้วซึ่งถูกแก้

EntityentityChangeการเปลี่ยนแปลง
Mill+department_id · +branch_code? — declares whose books the factory posts into and, for branches of one juristic person (L-1), the Revenue Department branch number shown beside the single tax id on statutory documents (OQ-9). The operational tenant is unchanged.+department_id · +branch_code? — ประกาศว่าโรงงานลงบัญชีในสมุดของใคร และสำหรับสาขาของนิติบุคคลเดียว (L-1) คือเลขสาขาของกรมสรรพากรที่แสดงคู่กับเลขภาษีเดียวบนเอกสารตามกฎหมาย (OQ-9) tenant เชิงปฏิบัติการไม่เปลี่ยน
SurfaceRoleGrant+department_id; uniqueness becomes UNIQUE (membership_id, surface, department_id) — the same person may be mill_finance at one factory and nothing at another. Existing rows migrate with their tenant's backfilled department id (WF-80).+department_id; ความไม่ซ้ำเป็น UNIQUE (membership_id, surface, department_id) — คนเดียวเป็น mill_finance ที่โรงงานหนึ่งและไม่มีสิทธิ์ที่อีกโรงงานได้ แถวเดิมย้ายพร้อม department id ที่เติมให้ tenant ของตน (WF-80)
RolePermissionscope_type gains department_path — one role library authored at the tenant root; a department may narrow a role, never widen it. department_path is the outermost scope axis, above province.scope_type เพิ่ม department_path — คลัง role หนึ่งชุดเขียนที่รากของ tenant; หน่วยงานบีบ role ให้แคบลงได้ แต่ขยายไม่ได้ department_path เป็นแกนขอบเขตนอกสุด เหนือจังหวัด
PermissionCatalog+department_delegable, and the group surface registers six grp_* keys. Administrative keys are delegable across departments; transactional and approval keys are not (G2, OQ-15).+department_delegable และ surface group ลงทะเบียนกุญแจ grp_* หกรายการ กุญแจเชิงบริหารมอบข้ามหน่วยงานได้; กุญแจเชิงรายการและการอนุมัติไม่ได้ (G2, OQ-15)

4. Relationships4. ความสัมพันธ์

Edgeเส้นCardinalityภาวะพหุRuleกติกา
Department → Mill1 — 0..*Branches of one company (L-1); Mill.department_id resolves inside the mill's OWN tenant. One company operating three factories is ONE tenant — the company classified once in its own tree, the factories its departments (PROP-083 OQ-3, v0.60.0; the PROP-026 sentence the tenant is always the factory is superseded, PROP-075 OQ-7 having already ruled that no two tenants hold one registered body).สาขาของบริษัทเดียว (L-1); Mill.department_id อยู่ใน tenant ของโรงงานเอง บริษัทเดียวที่เดินสามโรงงานคือ tenant เดียว — จำแนกบริษัทครั้งเดียวในต้นไม้ของตัวเอง โดยโรงงานเป็น department (PROP-083 OQ-3 v0.60.0 ประโยค tenant คือโรงงานเสมอ ของ PROP-026 ถูกแทน)
Department → OwnershipEdge → Department1 — 0..* — 1The dated ownership graph; chains and cycles are legal input, control is derived (OQ-10).กราฟการถือหุ้นที่มีวันที่; ห่วงโซ่และวงเป็น input ที่ถูกต้อง อำนาจควบคุมคำนวณได้ (OQ-10)
FactoryGroup → Department1 — 1apex_entity_id — no apex, no group.apex_entity_id — ไม่มียอด ไม่มีกลุ่ม
FactoryGroup → GroupMembership → Mill1 — 1..* — 1Dated membership; UNIQUE mill over open intervals (FR-197).สมาชิกภาพที่มีวันที่; UNIQUE โรงงานบนช่วงที่เปิด (FR-197)
FactoryGroup → GroupChartMap → LedgerAccount1 — 0..* — 1Mapping points into the MEMBER's own chart; charts are never forced into alignment.การ map ชี้เข้าผังบัญชีของสมาชิกเอง; ผังบัญชีไม่ถูกบังคับให้เหมือนกัน
FactoryGroup → InterCompanyRule → Mill1 — 0..* — 2Declared elimination pairs between member factories.คู่การตัดรายการที่ประกาศไว้ระหว่างโรงงานสมาชิก
GroupPeriod → GroupConsolidation → ConsolidationLine1 — 0..* — 1..*Many runs per period; each run's lines are immutable.หลายการรันต่องวด; บรรทัดของแต่ละการรันเปลี่ยนไม่ได้
GroupConsolidation → FiscalPeriod0..* — 1..*The inputs snapshot — never a live cross-department read (G4).snapshot ปัจจัยนำเข้า — ไม่ใช่การอ่านข้ามหน่วยงานแบบสด (G4)
FactoryGroup → Tenant1 — 1The group is a Tenant holding the exclusive group capacity; member factories keep their own Tenant.กลุ่มเป็น Tenant ที่ถือ capacity group เอกสิทธิ์; โรงงานสมาชิกคง Tenant ของตน
Tenant → Department · Department → Department1 — 0..1 · 1 — 0..*Every mill Tenant resolves to one department; the tree has ONE root and no tier cap (R-DEPTH, FR-395) — an operational guardrail of 8 levels, never a schema limit.Tenant โรงงานทุกรายชี้ไปหน่วยงานเดียว; ต้นไม้มีรากเดียวและไม่จำกัดชั้น (R-DEPTH, FR-395) — มีเพียงเพดานเชิงปฏิบัติการ 8 ชั้น ไม่ใช่ข้อจำกัดของสคีมา
SurfaceRoleGrant → Department0..* — 1A grant names the place it applies to.grant ระบุที่ที่มันมีผล
DirectoryGroup → DirectoryGrant1 — 0..*Role × surface × department (or path pattern) × allow|deny.role × surface × หน่วยงาน (หรือรูปแบบ path) × allow|deny
Membership → DirectoryGroupMember → DirectoryGroup1 — 0..* — 1Set membership, optionally time-bounded; nesting one level.การเป็นสมาชิกของชุด กำหนดช่วงเวลาได้; ซ้อนหนึ่งชั้น

5. Keys, uniqueness & persistence5. คีย์ ความไม่ซ้ำ และการจัดเก็บ

6. Persistence profile — home entities6. Persistence profile — entity ที่ home อยู่ฉบับนี้

Normative physical model for the 13 entities homed in this document, rendered from the graph's dataModeling block. Types derive from typeConventions (first rule wins): money = bigint satang · weights = integer kg · tonnage = numeric(12,3) · timestamps = timestamptz UTC · ids = uuid v7 · province = smallint (PROP-047). Department paths are ltree so a subtree read is one index lookup and a path pattern is an lquery. Every FK is indexed by convention (ON DELETE RESTRICT); listed indexes are additional. Enum value sets live in the graph's entity and state-machine notes.

Model เชิงกายภาพที่เป็นบรรทัดฐานของ entity ทั้ง 13 รายการที่ home อยู่ในเอกสารนี้ render จาก block dataModeling ใน graph ชนิดข้อมูลอนุมานจาก typeConventions (กติกาแรกที่เข้าเป็นผล): เงิน = bigint สตางค์ · น้ำหนัก = integer กก. · ตัน = numeric(12,3) · เวลา = timestamptz UTC · id = uuid v7 · จังหวัด = smallint (PROP-047) path ของหน่วยงานเป็น ltree การอ่าน subtree จึงเป็นการค้น index ครั้งเดียวและ path pattern เป็น lquery ทุก FK มี index ตามข้อตกลง (ON DELETE RESTRICT); index ที่ระบุคือส่วนเพิ่ม

Department นิติบุคคล mutable operational

table legal_entity  ·  aggregate Department  ·  code LEN-####  ·  unique (registration_no)  ·  index (tax_id) · (base_province,status)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
entity_iduuid—uuid_v7()PK
legal_nametext——
registration_notext (DBD 13)——
tax_idtext (RD 13)——
entity_roletext (enum)——
base_provincesmallint (province code)——
statustext (enum)——

OwnershipEdge เส้นการถือหุ้น append_only operational

table ownership_edge  ·  aggregate Department  ·  code OWE-########  ·  unique (from_entity_id,to_entity_id,effective_from)  ·  index (to_entity_id,effective_from) · (from_entity_id,effective_to)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
edge_iduuid—uuid_v7()PK
from_entity_iduuid——FK → legal_entity
to_entity_iduuid——FK → legal_entity
pct_votingnumeric(5,2)——
pct_economicnumeric(5,2)✓—
effective_fromdate——
effective_todate✓—
evidence_reftext (document ref)——

FactoryGroup กลุ่มโรงงาน mutable operational

table factory_group  ·  aggregate FactoryGroup  ·  code FGR-####  ·  unique (tenant_id) · (apex_entity_id) · (root_department_path)  ·  index (status,entitlement_state) · (directory_state)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
group_iduuid—uuid_v7()PK
tenant_iduuid——FK → tenant
legal_nametext——
brand_nametext✓—
apex_entity_iduuid——FK → legal_entity
ubo_reftext (document ref)——
control_basistext (enum)——
group_typetext (enum)——
root_department_pathltree (department path)——
directory_statetext (enum)——
statustext (enum)——
verified_byuuid✓—
verified_attimestamptz✓—
attested_attimestamptz✓—
entitlement_statetext (enum)——

GroupMembership สมาชิกภาพกลุ่ม append_only operational

table group_membership  ·  aggregate FactoryGroup  ·  code GMB-########  ·  unique (mill_id (partial: WHERE effective_to IS NULL))  ·  index (group_id,effective_from) · (mill_id,effective_from)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
group_membership_iduuid—uuid_v7()PK
group_iduuid——FK → factory_group
mill_iduuid——FK → mill
effective_fromdate——
effective_todate✓—
admission_evidence_reftext (document ref)——
admitted_byuuid——
exit_reasontext✓—

GroupChartMap การ map ผังบัญชีกลุ่ม append_only operational

table group_chart_map  ·  aggregate FactoryGroup  ·  code GCM-########  ·  unique (group_id,version,member_account_id)  ·  index (group_id,version,status) · (member_account_id)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
map_iduuid—uuid_v7()PK
group_iduuid——FK → factory_group
versioninteger——
member_account_iduuid——FK → ledger_account
group_linetext (reporting line)——
effective_fromdate——
effective_todate✓—
statustext (enum)——

InterCompanyRule กติกาตัดรายการระหว่างบริษัท append_only operational

table intercompany_rule  ·  aggregate FactoryGroup  ·  code ICR-######  ·  unique (group_id,mill_id_a,mill_id_b,rule_kind,version)  ·  index (group_id,version,status)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
rule_iduuid—uuid_v7()PK
group_iduuid——FK → factory_group
mill_id_auuid——FK → mill
mill_id_buuid——FK → mill
rule_kindtext (enum)——
match_basistext (enum)——
versioninteger——
statustext (enum)——

GroupPeriod งวดกลุ่ม mutable operational

table group_period  ·  aggregate GroupPeriod  ·  code GPD-25##-##  ·  unique (group_id,starts_on,ends_on)  ·  index (group_id,status)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
group_period_iduuid—uuid_v7()PK
group_iduuid——FK → factory_group
labeltext——
starts_ondate——
ends_ondate——
member_period_refsuuid[] (FiscalPeriod)——
statustext (enum)——

GroupConsolidation การจัดทำงบรวม immutable_after_state operational

table group_consolidation  ·  aggregate GroupConsolidation  ·  code GCN-########  ·  index (group_id,group_period_id,run_at) · (status,run_grade)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
run_iduuid—uuid_v7()PK
group_iduuid——FK → factory_group
group_period_iduuid——FK → group_period
run_gradetext (enum)——
inputs_snapshot_reftext (snapshot ref)——
map_versioninteger——
rule_versioninteger——
topology_basisjsonb (ownership as at run)——
run_byuuid——
run_attimestamptz——
published_attimestamptz✓—
statustext (enum)——

ConsolidationLine บรรทัดงบรวม immutable_after_state operational

table consolidation_line  ·  aggregate GroupConsolidation  ·  code —  ·  unique (run_id,group_line,mill_id)  ·  index (run_id,group_line)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
line_iduuid—uuid_v7()PK
run_iduuid——FK → group_consolidation
group_linetext (reporting line)——
mill_iduuid✓—FK → mill
amountbigint (satang)——
elimination_flagboolean——
unmapped_flagboolean——
nci_flagboolean——

Department หน่วยงาน mutable operational

table department  ·  aggregate Department  ·  code DEP-########  ·  home SPEC-ERD-FED (v0.46.0, PROP-075 approved & applied 3 Aug 2026)  ·  unique (department_path) · PARTIAL (legal_form, registration_no) and (tax_id) WHERE legal_form IS NOT NULL AND status = live  ·  index (tenant_id,kind) · (parent_department_id) · (tenant_id)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
department_iduuid—uuid_v7()PK
tenant_iduuid——FK → tenant
parent_department_iduuid✓—FK → department
department_pathltree (department path)——
kindtext (enum)——
tenant_iduuid——FK → tenant
mill_iduuid✓—FK → mill
statustext (enum)——

DirectoryGroup กลุ่มไดเรกทอรี mutable operational

table directory_group  ·  aggregate DirectoryGroup  ·  code DGP-######  ·  unique (tenant_id,name)  ·  index (owner_department_id) · (nested_in)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
group_dir_iduuid—uuid_v7()PK
tenant_iduuid——FK → tenant
nametext——
owner_department_iduuid——FK → department
nested_inuuid✓—FK → directory_group
statustext (enum)——

DirectoryGroupMember สมาชิกกลุ่มไดเรกทอรี append_only operational

table directory_group_member  ·  aggregate DirectoryGroup  ·  code —  ·  unique (group_dir_id,membership_id,effective_from)  ·  index (membership_id,effective_to) · (group_dir_id,effective_to)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
dir_member_iduuid—uuid_v7()PK
group_dir_iduuid——FK → directory_group
membership_iduuid——FK → membership
effective_fromdate——
effective_todate✓—
added_byuuid——

DirectoryGrant grant ของกลุ่มไดเรกทอรี append_only operational

table directory_grant  ·  aggregate DirectoryGroup  ·  code DGR-########  ·  unique (group_dir_id,surface,role_id,department_id,department_path_pattern)  ·  index (group_dir_id,status) · (department_id,allowed) · (role_id)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
grant_iduuid—uuid_v7()PK
group_dir_iduuid——FK → directory_group
surfacetext (enum)——
role_idtext (role key)——
department_iduuid✓—FK → department
department_path_patternltree (lquery pattern)✓—
allowedtext (allow | deny)——
granted_byuuid——
granted_attimestamptz——
four_eyes_reftext (approval ref)✓—
statustext (enum)——

7. Keys, indexes & mutability7. Key, index และ mutability

One row per entity homed in this perspective. Mutability: mutable · immutable_after_state (frozen once a terminal state is reached) · append_only (corrections supersede or reverse, never edit) · reference (catalogue). PDPA class: personal · consent_gated · confidential_wall · operational · public. The group layer is operational throughout — it holds companies, not people; the personal data it reaches sits behind the member factory's own wall (NFR-68).

หนึ่งแถวต่อ entity ที่ home อยู่ในมุมมองนี้ ชั้นกลุ่มเป็น operational ทั้งหมด — ถือข้อมูลนิติบุคคล ไม่ใช่บุคคล ข้อมูลส่วนบุคคลที่มันเอื้อมถึงอยู่หลังกำแพงของโรงงานสมาชิกเอง (NFR-68)

EntityTableตารางPKUniqueKey indexesIndex หลักMutabilityPDPAProfile
Departmentlegal_entityentity_id(registration_no)(tax_id) (base_province,status)mutableoperationalSection 6ข้อ 6
OwnershipEdgeownership_edgeedge_id(from_entity_id,to_entity_id,effective_from)(to_entity_id,effective_from) (from_entity_id,effective_to)append_onlyoperationalSection 6ข้อ 6
FactoryGroupfactory_groupgroup_id(tenant_id) (apex_entity_id) (root_department_path)(status,entitlement_state) (directory_state)mutableoperationalSection 6ข้อ 6
GroupMembershipgroup_membershipgroup_membership_id(mill_id (partial: WHERE effective_to IS NULL))(group_id,effective_from) (mill_id,effective_from)append_onlyoperationalSection 6ข้อ 6
GroupChartMapgroup_chart_mapmap_id(group_id,version,member_account_id)(group_id,version,status) (member_account_id)append_onlyoperationalSection 6ข้อ 6
InterCompanyRuleintercompany_rulerule_id(group_id,mill_id_a,mill_id_b,rule_kind,version)(group_id,version,status)append_onlyoperationalSection 6ข้อ 6
GroupPeriodgroup_periodgroup_period_id(group_id,starts_on,ends_on)(group_id,status)mutableoperationalSection 6ข้อ 6
GroupConsolidationgroup_consolidationrun_id—(group_id,group_period_id,run_at) (status,run_grade)immutable_after_stateoperationalSection 6ข้อ 6
ConsolidationLineconsolidation_lineline_id(run_id,group_line,mill_id)(run_id,group_line)immutable_after_stateoperationalSection 6ข้อ 6
Departmentdepartmentdepartment_id(department_path) PARTIAL (legal_form, registration_no) · (tax_id) WHERE legal_form IS NOT NULL AND live(tenant_id,status) (parent_department_id) (tenant_id)mutableoperationalSection 6ข้อ 6
DirectoryGroupdirectory_groupgroup_dir_id(tenant_id,name)(owner_department_id) (nested_in)mutableoperationalSection 6ข้อ 6
DirectoryGroupMemberdirectory_group_memberdir_member_id(group_dir_id,membership_id,effective_from)(membership_id,effective_to) (group_dir_id,effective_to)append_onlyoperationalSection 6ข้อ 6
DirectoryGrantdirectory_grantgrant_id(group_dir_id,surface,role_id,department_id,department_path_pattern)(group_dir_id,status) (department_id,allowed) (role_id)append_onlyoperationalSection 6ข้อ 6

8. Consistency boundaries8. ขอบเขตความสอดคล้อง (aggregate)

Transaction boundaries for this perspective, from graph dataModeling.aggregates. Inside a boundary the stated invariants commit atomically in one database transaction; across boundaries effects flow through domain events (eventual consistency). Note the deliberate split: the legal graph, the group container, the period, the run and the directory are five separate boundaries, so recording an ownership change never locks a consolidation run and revoking a grant never touches the books.

ขอบเขต transaction ของมุมมองนี้ จาก dataModeling.aggregates ใน graph ภายในขอบเขต invariant ที่ระบุ commit แบบ atomic ใน transaction เดียว; ข้ามขอบเขตผลไหลผ่าน domain event สังเกตการแยกโดยตั้งใจ: กราฟนิติบุคคล ตัวกลุ่ม งวด การรัน และไดเรกทอรี เป็นห้าขอบเขตแยกกัน การบันทึกการเปลี่ยนการถือหุ้นจึงไม่ล็อกการรันงบรวม และการเพิกถอน grant ไม่แตะสมุดบัญชี

Aggregate rootMembersสมาชิกContextTransaction ruleกติกา transaction
DepartmentDepartment · OwnershipEdgefactory_groupAn ownership edge is appended inside the from-entity’s transaction; control is DERIVED at read time and never stored, so recording a holding never rewrites a group’s composition (L-1…L-3).เส้นการถือหุ้นถูก append ใน transaction ของนิติบุคคลต้นทาง; การควบคุมอนุมานตอนอ่านและไม่เก็บไว้ การบันทึกการถือหุ้นจึงไม่เขียนองค์ประกอบของกลุ่มใหม่ (L-1…L-3)
FactoryGroupFactoryGroup · GroupMembership · GroupChartMap · InterCompanyRulefactory_groupComposition and authoring commit together: admitting a mill tests the open-interval uniqueness on mill_id in the same transaction (FR-197), and a chart-map or elimination-rule version is stamped whole or not at all — a member chart is never edited from the group side (PROP-023).องค์ประกอบและการกำหนดกติกา commit ด้วยกัน: การรับโรงงานเข้ากลุ่มตรวจความไม่ซ้ำบนช่วงที่เปิดของ mill_id ใน transaction เดียวกัน (FR-197) และเวอร์ชันของ map ผังบัญชีหรือกติกาตัดรายการถูกประทับทั้งชุดหรือไม่ประทับเลย — ผังบัญชีของสมาชิกไม่ถูกแก้จากฝั่งกลุ่ม (PROP-023)
GroupPeriodGroupPeriodfactory_groupA group period is the union of member fiscal periods sharing the same bounds; member_period_refs is resolved and frozen in one transaction, and a run over any OPEN member period is stamped provisional at that moment.งวดกลุ่มคือ union ของงวดบัญชีสมาชิกที่มีขอบเขตเดียวกัน; member_period_refs ถูก resolve และตรึงใน transaction เดียว และการรันบนงวดสมาชิกที่ยังเปิดถูกประทับว่า provisional ณ ขณะนั้น
GroupConsolidationGroupConsolidation · ConsolidationLinefactory_groupA run and every line commit atomically and are immutable thereafter; inputs, map version, rule version and ownership topology are frozen on the run, so a correction is a NEW run and never an edit (G4). Member books are read from the snapshot, never live across departments.การรันและทุกบรรทัด commit แบบ atomic และเปลี่ยนไม่ได้หลังจากนั้น; input เวอร์ชัน map เวอร์ชันกติกา และ topology การถือหุ้นถูกตรึงบนการรัน การแก้ไขจึงเป็นการรันใหม่ ไม่ใช่การแก้ (G4) อ่านสมุดบัญชีสมาชิกจาก snapshot ไม่ใช่อ่านสดข้ามหน่วยงาน
DepartmentDepartmentfactory_groupA department node opens, moves or closes in a single-row transaction; department_path is unique tenant-wide and re-parenting rewrites descendant paths in the same transaction, so a directory read never sees a half-moved tree.โหนดหน่วยงานเปิด ย้าย หรือปิดใน transaction รายแถว; department_path ไม่ซ้ำทั้ง tenant และการย้ายต้นสังกัดเขียน path ของลูกหลานใหม่ใน transaction เดียวกัน การอ่านไดเรกทอรีจึงไม่เห็นต้นไม้ที่ย้ายค้าง
DirectoryGroupDirectoryGroup · DirectoryGroupMember · DirectoryGrantfactory_groupA directory group, its memberships and its grants commit together. Grants are revoke-not-delete (a status change is appended), an explicit deny at any level overrides every allow at read time (DR-3, A5), and adding a member to an enterprise-admin group carries its four-eyes reference in the same transaction (FR-215).กลุ่มไดเรกทอรี สมาชิกภาพ และ grant commit ด้วยกัน grant ใช้การเพิกถอนไม่ใช่การลบ (append การเปลี่ยนสถานะ) การ deny ที่ระดับใดก็ตามชนะ allow ทั้งหมดตอนอ่าน (DR-3, A5) และการเพิ่มสมาชิกเข้ากลุ่มผู้ดูแลระดับองค์กรต้องมีการอ้างอิงสี่ตาใน transaction เดียวกัน (FR-215)

9. The external legal-entity reference (PROP-084)9. การอ้างอิงนิติบุคคลภายนอก (PROP-084)

Applied 18 Aug 2026 as spec v0.75.0 (A-111 R-EXTERNALONLY, narrowing A-103 R-LEGALREF; FR-488; OQ-2 decided by the client 18 Aug 2026). It exists for ONE reason: an OwnershipEdge or a FactoryGroup apex must be able to name a legal body that holds no tenant and has no canonical Department — an apex or an off-platform holding company has no tree it could belong to, and an edge whose target were another tenant’s private row would need a FIFTH cross-tenant mechanism where NFR-65 says there are four. Every ON-platform legal identity is a dated profile on a Department (SPEC-ERD-FED Section 15); the name of this row says which of the two it is.

apply 18 ส.ค. 2569 เป็น spec v0.75.0 (A-111 R-EXTERNALONLY ทำให้ A-103 R-LEGALREF แคบลง · FR-488 · OQ-2 ลูกค้าตัดสิน 18 ส.ค. 2569) มีอยู่ด้วยเหตุผลเดียว คือ OwnershipEdge หรือยอดของ FactoryGroup ต้องระบุนิติบุคคลที่ไม่มี tenant และไม่มี Department หลักได้ ตัวตนทางกฎหมายบนแพลตฟอร์มทุกรายเป็น profile ที่มีวันที่บน Department (SPEC-ERD-FED ข้อ 15)

What it is. Operator-owned, trust class platform-only, no tenant_id. Minted on demand by the relationship that names it — the operator console offers no way to create one on its own and no list of them, so it is never a browsable directory and never a general juristic-person model. It stores public-registry identity only. Append-only supersession: supersedes_reference_id? for a corrected public fact, superseded_by_department_id? for the day the body receives a tenant — at which point the reference is LINKED to that department and CLOSED in one recorded act, never duplicated into a second identity and never carried on beside the profile.

คืออะไร ผู้ดำเนินการเป็นเจ้าของ ชั้นความไว้วางใจ platform-only ไม่มี tenant_id สร้างเมื่อการอ้างอิงระบุมันเท่านั้น ไม่มีรายการให้เปิดดู เก็บเฉพาะอัตลักษณ์จากทะเบียนสาธารณะ และเมื่อนิติบุคคลได้ tenant การอ้างอิงถูกผูกกับหน่วยงานนั้นและปิดในการกระทำเดียวที่บันทึกไว้ ไม่มีการสร้างอัตลักษณ์ซ้ำ

Refused by name — the boundary the OQ-2 decision bought: a tenant operation · a billing profile · a VATRegistration or VATEstablishment · a membership · a permission · any financial figure · any private document · a dossier · children · an entity_role · a site · a quota · a hierarchy parent · a grant scope · the responsible body of a site, a mill or a quota.

ปฏิเสธโดยระบุชื่อ — ขอบเขตที่คำตัดสิน OQ-2 ซื้อมา: ไม่มีการดำเนินงานของ tenant ไม่มี billing profile ไม่มีระเบียน VAT ไม่มีสมาชิก ไม่มีสิทธิ์ ไม่มีข้อมูลการเงิน ไม่มีเอกสารส่วนตัว ไม่มีแฟ้ม ไม่มีลูก ไม่มี entity_role ไม่มีสถานที่ ไม่มีโควตา ไม่เป็นพ่อแม่ของลำดับชั้น ไม่เป็นขอบเขตสิทธิ์ และไม่เป็นผู้รับผิดชอบของสถานที่ โรงงาน หรือโควตา

ExternalLegalEntityReference การอ้างอิงนิติบุคคลภายนอก append_only public

table external_legal_entity_reference  ·  aggregate ExternalLegalEntityReference  ·  code XLE-########  ·  unique (registrar,registration_no — partial: WHERE registration_no IS NOT NULL AND status = live)  ·  index (status) · (jurisdiction_code) · (superseded_by_department_id)

ColumnColumnTypeชนิดNullDefaultค่าตั้งต้นKey / refKey / อ้างอิง
external_reference_iduuid—uuid_v7()PK
legal_nametext———
legal_formtext (legalForms row id)✓——
registrartext✓——
registration_notext (as issued)✓—UNIQUE (registrar,registration_no — live)
jurisdiction_codechar(2) (ISO 3166-1)—TH—
evidence_reftext (document ref)✓—public registry extract only
verified_attimestamptz✓——
sourcetext (enum)———
recorded_ontimestamptz—now()—
supersedes_reference_iduuid✓—FK → external_legal_entity_reference
superseded_by_department_iduuid (recorded reference — not a foreign key)✓—the adoption pointer
statustext (enum: live | superseded | void)—live—

9.1 The four cross-tenant references, re-dispositioned9.1 การอ้างข้าม tenant สี่รายการ ระบุข้อวินิจฉัยใหม่

The register at tenantHierarchy.legalReference had all four promising to “re-point at platform-owned legal-person reference data when the split lands”. The OQ-1 and OQ-2 decisions cancel that promise: the split did not land as sketched, Department stays the canonical node, and the class stays closed at four with no fifth member (NFR-65, NFR-195, V-19).

ทะเบียนที่ tenantHierarchy.legalReference เคยระบุว่าทั้งสี่รายการจะย้ายไปชี้ข้อมูลอ้างอิงนิติบุคคลของแพลตฟอร์ม คำตัดสิน OQ-1 และ OQ-2 ยกเลิกคำสัญญานั้น Department ยังเป็นโหนดหลัก และชั้นนี้ยังปิดอยู่ที่สี่รายการ

Referenceการอ้างTargetปลายทางDisposition, correctedข้อวินิจฉัยที่แก้แล้ว
OwnershipEdge.from_entity_idDepartmentstays a reference into Department, and gains ExternalLegalEntityReference as an alternative target ONLY where the named body holds no tenant
OwnershipEdge.to_entity_idDepartmentthe same — an ownership edge may name an off-platform body on either end
FactoryGroup.apex_entity_idDepartmentthe same; an apex that holds no tenant is exactly the case the reference row exists for
Quota.holder_department_idDepartmentstays a reference into Department, permanently — it names one of the HOLDER’s own units, which has a tenant by construction, so it does not even gain the alternative target

The adoption pointer is a recorded reference, not an enforced key. The row sits on the operator plane with no tenant of its own, so a foreign key into a tenant’s tree would be a FIFTH cross-tenant mechanism where NFR-65 says there are four. superseded_by_department_id is therefore a recorded reference value — the same device the RegistrationUniquenessIndex uses for its three owner values (SPEC-ERD-PLT Section 5) — and the class stays closed at four (NFR-195).

ตัวชี้การรับเข้าเป็นค่าอ้างอิงที่บันทึกไว้ ไม่ใช่ foreign key แถวนี้อยู่บนระนาบผู้ดำเนินการและไม่มี tenant ของตัวเอง หาก foreign key ชี้เข้าไปในต้นไม้ของ tenant จะเป็นกลไกข้าม tenant รายการที่ห้า ขณะที่ NFR-65 ระบุว่ามีสี่ superseded_by_department_id จึงเป็นค่าอ้างอิงที่บันทึกไว้ เหมือนค่าเจ้าของสามค่าของ RegistrationUniquenessIndex (SPEC-ERD-PLT ข้อ 5) และชั้นนี้ยังปิดอยู่ที่สี่รายการ (NFR-195)

Read by V-20 leg (e) — the reference declares no tenant_id, no hierarchy parent, no path, no entity_role, no grant scope and no money attribute, and is named only by OwnershipEdge or FactoryGroup.apex_entity_id — and by leg (f), which keeps the cross-tenant class at four.

อ่านด้วย V-20 ขา (จ) และขา (ฉ) ซึ่งคงชั้นการอ้างข้าม tenant ไว้ที่สี่รายการ

Related documentsเอกสารที่เกี่ยวข้อง

Revision historyประวัติการแก้ไข

RevฉบับDateวันที่Changeการเปลี่ยนแปลง
0.1.02026-07-25Created by PROP-026 (spec v0.25.0, accepted & applied 25 Jul 2026; all 17 open questions client-decided) — the GRP market perspective family opens with six documents. Rev starts at 0.1.0 per the post-PROP-014 semantic-versioning convention.สร้างโดย PROP-026 (spec v0.25.0 รับและ apply 25 ก.ค. 2569; ลูกค้าตัดสินคำถามเปิดครบทั้ง 17 ข้อ) — ตระกูล perspective ฝั่งตลาด GRP เปิดพร้อมเอกสารหกฉบับ เริ่ม rev ที่ 0.1.0 ตามธรรมเนียม semantic versioning หลัง PROP-014
0.2.02026-07-28Physical-model batch 3 (spec v0.28.3) — the factory_group block cleared under authority rule 6. All thirteen entities gain a dataModeling profile and an aggregate membership, rendered here as new Section 6 (per-entity persistence profiles), Section 7 (keys, indexes, mutability, PDPA) and Section 8 (six consistency boundaries: Department · FactoryGroup · GroupPeriod · GroupConsolidation · Department · DirectoryGroup). Section 5’s standing back-audit note is retired. DirectoryGrant.role_id is typed as a catalogue key, not an entity FK, matching the applied SurfaceRoleGrant precedent (roles are graph nodes, not a table). Department paths are typed ltree; the open-interval GroupMembership rule (FR-197) and the site-department rule are expressed as partial uniques. No entity, attribute, relationship or requirement changed.แบบจำลองเชิงกายภาพ ก้อนที่ 3 (spec v0.28.3) — เคลียร์บล็อก factory_group ตามกติกาอำนาจข้อ 6 entity ทั้งสิบสามรายการได้ profile dataModeling และการเป็นสมาชิก aggregate render เป็นข้อ 6 (profile รายตัว) ข้อ 7 (key index mutability PDPA) และข้อ 8 (ขอบเขตความสอดคล้องหกชุด) ยกเลิกหมายเหตุ back-audit ในข้อ 5 path หน่วยงานใช้ชนิด ltree; กติกาช่วงเปิดของ GroupMembership (FR-197) และกติกา site department แสดงเป็น partial unique ไม่มีการเปลี่ยน entity attribute ความสัมพันธ์ หรือ requirement
0.3.02026-08-03PROP-075 approved & applied — spec v0.46.0. LegalEntity and Department LEAVE this corpus. Both merge into Department (หน่วยงาน, DEP-########), homed in SPEC-ERD-FED because it now describes EVERY tenant and not only a factory group; this document cites it. PROP-026 is amended, not reversed: OwnershipEdge, the control test, the apex rule, GroupChartMap, InterCompanyRule and the consolidation model are untouched — the ownership graph simply joins legally-classified DEPARTMENTS, and it remains the cap table while parent_department_id is administrative containment (R-NOTCAPTABLE). OQ-14’s THREE-TIER CAP is WITHDRAWN (R-DEPTH): a group is holding → operating → factory → its own ฝ่าย without special pleading, bounded operationally at 8 levels. A member factory is now a Site of kind mill plus the department that operates at it, joined by one DepartmentSite presence row; Mill.legal_entity_id becomes Mill.department_id (whose books) beside Mill.site_id (where). department_id → department_id throughout.PROP-075 อนุมัติและ apply — spec v0.46.0 LegalEntity และ Department ย้ายออกจากเอกสารชุดนี้ไปรวมเป็น Department ที่ SPEC-ERD-FED โดยกลไกกลุ่มโรงงานไม่ถูกกลับ และเพดานสามชั้นของ OQ-14 ถูกถอน
0.4.02026-08-03PROP-073 (spec v0.47.0): one word — Tenant. Party → Tenant, party_id (and every prefixed form) → tenant_id, PartyCapacity/PartyQualification/PartyFounded → Tenant*, party context/switcher → tenant context/switcher, cross-party → cross-tenant, organisation → organization, and ผู้เล่น retired as the Thai gloss (the Latin word tenant instead, R-THAI). Hold list untouched: counterparty · third party · tripartite working group · Person*/person_id; display codes and token claims were held by R-NULL for one release and then MOVED at v0.47.1 on client decision (C-1), because no token has ever been SIGNED — no auth exists in the built ocsb/ocsf prototypes — and the only printed codes were eight fixture strings in apps/ocsf/fund-shell.jsx, swept in the same pass: PTY- → TNT-, TCA- → TCA-, TQL- → TQL-, claim tnt → tnt, claim dep → dep. Carried in the same pass: the PROP-075 rectification — the retired directory noun domain becomes department (A-82 R-ONETREE) and the dangling A-86/A-87/A-88 citations are re-pointed at the ids they were actually given, A-81/A-82/A-83.PROP-073 (spec v0.47.0): คำเดียว — Tenant Party → Tenant, party_id ทุกรูป → tenant_id, PartyCapacity/PartyQualification/PartyFounded → Tenant*, cross-party → cross-tenant และเลิกใช้ ผู้เล่น เป็นคำแทนวัตถุนี้ในภาษาไทย (ใช้คำละติน tenant ตาม R-THAI) รายการห้ามแตะไม่ถูกแตะ: คู่สัญญา · third party · คณะทำงานไตรภาคี · Person*/person_id รอบเดียวกันแก้ค้างจาก PROP-075: domain → department (A-82) และแก้การอ้าง A-86/A-87/A-88 ที่ไม่มีอยู่จริงเป็น A-81/A-82/A-83
0.4.12026-08-03PROP-073 PATCH 1 (spec v0.47.1 / v0.47.2 / v0.47.3 as applicable): the identifiers v0.47.0 had held, moved on client decision. PTY-######## → TNT-######## · PCA-######## → TCA-######## · PQL-######## → TQL-######## · token claim pty → tnt · token claim dom → dep (v0.47.1, C-1 — R-NULL had held them as a stored VALUE and a wire format; reversed because no token has ever been signed and the only printed codes were fixture strings). quota_org_officer → quota_officer · lead_org_officer → lead_officer (v0.47.2, C-2 — org is organization abbreviated, not a resemblance). The retired role LABEL swept as a phrase family and quota organization naming the tenant → quota group / กลุ่มโควตา (v0.47.3). All retired forms are in the FR-396 crosswalk and refused in new text by NFR-142.PROP-073 PATCH 1 (spec v0.47.1 / v0.47.2 / v0.47.3 ตามที่เกี่ยวข้อง): ตัวระบุที่ v0.47.0 คงไว้ ถูกย้ายตามการตัดสินของลูกค้า PTY- → TNT- · PCA- → TCA- · PQL- → TQL- · claim pty → tnt · claim dom → dep (v0.47.1, C-1) · quota_org_officer → quota_officer · lead_org_officer → lead_officer (v0.47.2, C-2) · ป้ายชื่อบทบาทที่เลิกใช้และ องค์กรโควตา ที่เรียก tenant → กลุ่มโควตา (v0.47.3) ทุกรูปที่เลิกใช้อยู่ในตารางแปลง FR-396
0.5.02026-08-10PROP-083 approved & applied — spec v0.60.0: the hierarchy above a tenant. A-103 (R-FLAT · R-ABOVE · R-CONTAINERCAP · R-LEGALREF) closes the question this document's ownership graph raised: the tenant is the ROOT of containment, parent_tenant_id is permanently undefined, and the group capacity + dated GroupMembership + OwnershipEdge stay the ONLY way one tenant stands above another — beside the wall, never inside it. Section 4 corrected: the Department → Mill edge no longer says the tenant is always the factory (superseded by PROP-075 OQ-7); Mill.department_id resolves inside the mill's own tenant, so one company operating three factories is one tenant. OwnershipEdge.from/to_entity_id and FactoryGroup.apex_entity_id are declared cross-tenant REFERENCES under R-LEGALREF, dispositioned in the graph at tenantHierarchy and read by V-19; the legal-person split rides candidate PROP-084. No entity, attribute or relationship changed.PROP-083 อนุมัติและ apply — spec v0.60.0: ลำดับชั้นเหนือ tenant A-103 (R-FLAT · R-ABOVE · R-CONTAINERCAP · R-LEGALREF) กำหนดว่า tenant คือรากของการบรรจุ parent_tenant_id ไม่นิยามอย่างถาวร และความสามารถ group กับ GroupMembership ที่มีวันที่และ OwnershipEdge ยังเป็นทางเดียวที่ tenant หนึ่งอยู่เหนืออีก tenant — อยู่ข้างกำแพง ไม่ใช่ข้างใน แก้ข้อ 4: เส้น Department → Mill ไม่กล่าวว่า tenant คือโรงงานเสมอ อีกต่อไป ส่วน OwnershipEdge และ FactoryGroup.apex_entity_id เป็นการอ้างข้าม tenant ที่ประกาศไว้ตาม R-LEGALREF ไม่มีการเปลี่ยน entity attribute หรือความสัมพันธ์
0.6.02026-08-18PROP-084 approved & applied — spec v0.75.0. New Section 9: ExternalLegalEntityReference — the bounded, operator-owned REFERENCE for a legal body that holds no tenant, with its persistence profile, the refusal list the OQ-2 decision bought, and the adoption act that links and supersedes it the day the body receives a department. Section 9.1 records the corrected dispositions of all FOUR declared cross-tenant references: the “re-point when the split lands” promise is cancelled, Department stays the target, and Quota.holder_department_id keeps it permanently. A-111 R-EXTERNALONLY narrows A-103 R-LEGALREF; the class stays closed at four.PROP-084 อนุมัติและ apply — spec v0.75.0 ข้อ 9 ใหม่: ExternalLegalEntityReference การอ้างอิงที่ผู้ดำเนินการเป็นเจ้าของสำหรับนิติบุคคลที่ไม่มี tenant พร้อม persistence profile รายการที่ปฏิเสธโดยระบุชื่อ และการรับเข้า ข้อ 9.1 บันทึกข้อวินิจฉัยที่แก้แล้วของการอ้างข้าม tenant ทั้งสี่รายการ