SPEC-ERD Rev 0.5.2 · 2026-08-03

Cane Agency · Specification · Master indexสถาบันอ้อย · เอกสารข้อกำหนด · ดัชนีแม่บท

Entity Relationship Diagram — Master Indexแผนภาพความสัมพันธ์ของข้อมูล — ดัชนีแม่บท

Documentเอกสาร
SPEC-ERD
Versionversion (เวอร์ชัน)
0.5.2 · Draftฉบับร่าง
Updatedปรับปรุงล่าสุด
2026-08-03
Source of truthแหล่งความจริง
graph/spec-graph.json · v0.4.0
Siblingsเอกสารพี่น้อง
SPEC-DDD · SPEC-PWF
Shapeรูปแบบ
Landing page (PROP-018) — depth lives in the perspective documentsหน้า landing (PROP-018) — เนื้อหาเชิงลึกอยู่ในเอกสารรายมุมมอง

1. Executive summary1. บทสรุปผู้บริหาร

The Cane Agency data model covers the full harvest-to-payment cycle — land and crop registry, quota chains, delivery and weighbridge, government CCS quality, statutory two-installment settlement, เงินเกี๊ยว and bank financing, the contractor marketplace, confidential strategic pricing, a general ledger for every tenant, the Cane & Sugar Fund, and the federated identity substrate beneath it all. The canonical form is the graph (graph/spec-graph.json); as of v0.4.0 (PROP-018) it also carries the physical layer — column types, keys and indexes, mutability and PDPA classes, aggregate consistency boundaries and DI component lifetimes. This master is the entry point: each card below opens a perspective document that renders its slice at implementation-handoff depth — a scoped entity-relationship diagram, column-level persistence profiles for its home entities, a keys/indexes/mutability matrix, and its transaction boundaries.

Model ข้อมูลของสถาบันอ้อยครอบคลุมวงจรเก็บเกี่ยวถึงการจ่ายเงินครบวงจร — ทะเบียนที่ดินและอ้อย สายโควตา การส่งมอบและแท่นชั่ง คุณภาพ CCS จากภาครัฐ การจ่ายสองงวดตามกฎหมาย เงินเกี๊ยวและสินเชื่อธนาคาร marketplace ผู้รับเหมา ค่าอ้อยกลยุทธ์ที่เป็นความลับ บัญชีแยกประเภทของทุก tenant กองทุนอ้อยและน้ำตาลทราย และชั้นอัตลักษณ์แบบ federation ที่รองรับทั้งหมด รูปแบบบรรทัดฐานคือ graph (graph/spec-graph.json) และตั้งแต่ v0.4.0 (PROP-018) graph ยังเก็บชั้นกายภาพ — ชนิด column, key และ index, ชั้น mutability และ PDPA, ขอบเขตความสอดคล้องของ aggregate และ lifetime ของ component แบบ DI เอกสารแม่บทนี้คือทางเข้า: การ์ดแต่ละใบด้านล่างเปิดเอกสารรายมุมมองที่ render ส่วนของตนในระดับส่งมอบให้ทีมพัฒนาได้จริง — แผนภาพความสัมพันธ์ entity เฉพาะมุมมอง, persistence profile ระดับ column ของ entity ที่ home อยู่ฉบับนั้น, ตาราง key/index/mutability และขอบเขต transaction

82EntitiesEntity
141Relationshipsความสัมพันธ์
20Bounded contextsBounded context
53AggregatesAggregate
9Perspective docsเอกสารมุมมอง

2. Perspective documents2. เอกสารรายมุมมอง

Every entity has exactly one home document carrying its full persistence profile; shared readers link across. Market capacities first, then the government cluster, then platform infrastructure.

ทุก entity มีเอกสาร home เพียงฉบับเดียวที่เก็บ persistence profile ฉบับเต็ม; ฝั่งที่อ่านร่วม link ข้ามมา เรียงจาก capacity ฝั่งตลาด ตามด้วยกลุ่มรัฐ และโครงสร้างพื้นฐาน platform

SPEC-ERD-CFC 7 entitiesentity Cane Farmer — land, crop & agronomyลูกไร่อ้อย — ที่ดิน อ้อย และเกษตรกรรม Field and Crop with the agronomy cluster — varieties, soil groups, activities, yield estimates, weather.Field และ Crop พร้อมกลุ่มเกษตรกรรม — พันธุ์อ้อย กลุ่มชุดดิน กิจกรรม การประมาณผลผลิต อากาศ Field · Crop · CaneVariety · SoilGroup · FarmActivity · WeatherObservation · YieldEstimate SPEC-ERD-CFQ 7 entitiesentity Quota Farmer — network, quota & เงินเกี๊ยวหัวหน้าโควต้า — เครือข่าย โควตา และเงินเกี๊ยว The farmer registry and quota chain, crop transfers, the เงินเกี๊ยว credit line and the onward premium relay.ทะเบียนชาวไร่และสายโควตา การโอนอ้อย วงเงินเงินเกี๊ยว และการส่งต่อพรีเมียม Farmer · Quota · CropTransfer · CreditLine · CreditItem · Repayment · OnwardPremiumSettlement SPEC-ERD-MILL 31 entitiesentity Sugar Factory — operations, settlement, strategic pricing & booksโรงงานน้ำตาล — ปฏิบัติการ การปิดงวด ค่าอ้อยกลยุทธ์ และบัญชี The operational core (intake → weighbridge → quality → settlement), the confidential strategic-pricing family, and the home of the whole general-ledger family (books · receivables · cash_management).แกนปฏิบัติการ (รับอ้อย → แท่นชั่ง → คุณภาพ → ปิดงวด), ตระกูลค่าอ้อยกลยุทธ์ที่เป็นความลับ และ home ของตระกูลบัญชีแยกประเภททั้งหมด (books · receivables · cash_management) Mill · Truck · CrushingDay · Delivery · WeighTicket · QualityTest · CcsReNote · CanePurchasePolicy · PaymentBatch · PaymentItem · PaymentInstallment · MillPaymentSchedule · FinalPriceSettlement · StampCheckpoint · CheckpointRate · StampEvent · StrategicAgreement · PremiumAccrual · PremiumRelease · + GL family (12) SPEC-ERD-FIN 8 entitiesentity Bank — consent-gated credit & lendingธนาคาร — สินเชื่อและการประเมินภายใต้ความยินยอม ConsentGrant-gated credit scoring (reproducible assessments) and the loan product → application → account → ledger chain.การประเมิน credit ภายใต้ ConsentGrant (ทำซ้ำได้) และสาย ผลิตภัณฑ์ → ใบสมัคร → บัญชีสินเชื่อ → ledger FinancialInstitution · ConsentGrant · CreditAssessment · LoanProduct · LoanApplication · LoanAccount · Collateral · LoanLedgerEntry SPEC-ERD-CEC 10 entitiesentity Contractor — marketplace, dispatch & reputationผู้รับเหมา — marketplace การจ่ายงาน และชื่อเสียง Directory → RFQ → award → work order with crew assignments, machines, four payment rails, verified reviews and endorsements.ไดเรกทอรี → RFQ → มอบงาน → work order พร้อมทีมงาน เครื่องจักร สี่ช่องทางจ่ายเงิน รีวิวที่ยืนยันแล้วและการรับรอง Contractor · ServiceOffering · ServiceRequest · ServiceQuote · WorkOrder · WorkAssignment · Machine · ServicePayment · Review · Endorsement SPEC-ERD-GOV-OCSB 5 entitiesentity OCSB (สอน.) — regulation & the 70:30 planeสอน. — การกำกับและระนาบ 70:30 Price announcements from the season revenue account, CCS audits, nightly burnt-cane compliance, sugar bids — governed by the Board (กอน.).การประกาศราคาจากบัญชีรายได้ประจำฤดู การตรวจ CCS ระเบียนกำกับอ้อยไฟไหม้รายคืน ผลประมูลน้ำตาล — ภายใต้การกำกับของ กอน. RevenueAccount · CanePriceAnnouncement · CcsAudit · BurntCaneCompliance · SugarBid SPEC-ERD-GOV-OCSF 4 entitiesentity OCSF — the Cane & Sugar Fundกองทุนอ้อยและน้ำตาลทราย (OCSF) Levy-based contributions, Article 56 compensations and the season fund balance — proportionate by design (NFR-29).เงินสมทบตาม levy เงินชดเชยมาตรา 56 และยอดกองทุนประจำฤดู — ได้สัดส่วนโดยการออกแบบ (NFR-29) CaneSugarFund · FundLevyRate · FundContribution · FundCompensation SPEC-ERD-FED 9 entitiesentity Federation — the identity substrateFederation — ชั้นอัตลักษณ์ Person → Tenant → capacity set, memberships, role grants, the permission catalogue, audited view-as, and the platform Season calendar. Sole identity writer.Person → Tenant → ชุด capacity, membership, การให้ role, แคตตาล็อกสิทธิ์, view-as ที่ตรวจสอบได้ และปฏิทินฤดูของ platform ผู้เขียนอัตลักษณ์รายเดียว Person · Tenant · TenantCapacity · Membership · SurfaceRoleGrant · PermissionCatalog · RolePermission · ViewAsSession · Season SPEC-ERD-OPS 1 entityentity Operator — admission & representative millsOperator — การรับเข้าและโรงงานตัวแทน The Invitation admission ticket for invitation-only capacities, and the operator-stewarded representative-mill lifecycle.บัตรเชิญ Invitation สำหรับ capacity แบบเชิญเท่านั้น และวงจรชีวิตโรงงานตัวแทนที่ operator ดูแล Invitation (+ Tenant.representation · Mill.onboard_status) SPEC-ERD-PLT 4 entitiesentity Platform Intelligence — shared master dataข่าวกรอง platform — ข้อมูลหลักที่ใช้ร่วมกัน The platform-wide reliability-score entities, re-homed per PROP-046 OQ-3; MasterTruck/TruckLink join at PROP-025's application.Entity คะแนนความน่าเชื่อถือระดับ platform ย้ายบ้านตาม PROP-046 OQ-3; MasterTruck/TruckLink เข้าเมื่อ PROP-025 ถูก apply ReliabilityEvent · ReliabilityScore · ScoringPolicy · BookingPrivilegePolicy SPEC-ERD-GRP 13 entitiesentity Factory Group — ownership, consolidation & the directoryกลุ่มโรงงาน — ความเป็นเจ้าของ การรวมบัญชี และไดเรกทอรี The D-2 legal layer (Department · dated OwnershipEdge), the consolidation read model over PROP-023 books, and the D-3/D-4 directory extending the applied identity model.ชั้นกฎหมายตาม D-2 (Department · OwnershipEdge ที่มีวันที่) read model การรวมบัญชีบนสมุดบัญชี PROP-023 และไดเรกทอรีตาม D-3/D-4 ที่ขยาย model อัตลักษณ์ที่ใช้แล้ว FactoryGroup · GroupMembership · GroupConsolidation · Department · DirectoryGroup · DirectoryGrant SPEC-ERD-CFL Lead Farmer — entity modelหัวตัน — แบบจำลอง entity lead_network

3. How to read a perspective document3. วิธีอ่านเอกสารรายมุมมอง

Sectionส่วนContentsเนื้อหา
Entity mapแผนที่ entityOwns / shares / contexts / workflows at a glance, keyed to the graph perspectives block.เป็นเจ้าของ / ใช้ร่วม / context / workflow ในหน้าเดียว อิง block perspectives ของ graph
Entity relationship diagramแผนภาพความสัมพันธ์ entityScoped figures — attribute-level boxes (PK bold, FK gold), dashed shared entities labelled with their home doc, cardinalities at line ends.ภาพเฉพาะมุมมอง — กล่องระดับ attribute (PK ตัวหนา, FK สีทอง), entity ใช้ร่วมเส้นประพร้อมป้ายเอกสาร home, cardinality ที่ปลายเส้น
Persistence profilePer home entity: physical table, column → type → null → default → key/ref, uniques, indexes, aggregate, mutability + PDPA pills.ราย entity ที่ home: ตารางกายภาพ, column → ชนิด → null → ค่าตั้งต้น → key/อ้างอิง, unique, index, aggregate, ป้าย mutability + PDPA
Keys, indexes & mutabilityKey, index และ mutabilityOne-row-per-entity matrix incl. PDPA class; entities homed elsewhere link out.ตารางหนึ่งแถวต่อ entity รวมชั้น PDPA; entity ที่ home ที่อื่น link ออกไป
Consistency boundariesขอบเขตความสอดคล้องAggregates with the invariants that commit atomically; cross-aggregate effects are eventual via domain events. DI lifetimes live in the sibling SPEC-DDD doc.Aggregate พร้อม invariant ที่ commit แบบ atomic; ผลข้าม aggregate เป็น eventual ผ่าน domain event ส่วน lifetime แบบ DI อยู่ในเอกสาร SPEC-DDD พี่น้อง

4. Master conventions4. ข้อตกลงระดับแม่บท

Applied — PROP-050 · spec v0.28.0apply แล้ว — PROP-050 · spec v0.28.0

PROP-050 (spec v0.28.0) — cost centres to field & crop level. The ledger gains a cost dimension (five columns on JournalEntry.lines) over a derived CostCentre register, the CropCycle as the unit of return with its establishment asset, declared/versioned/reversible allocation, the photographed receipt as evidence on the entry, and the network lending branch for quota and lead farmers. Eleven new records, ten extensions, one withdrawal (CropExpense as a store), fourteen vocabularies, eighteen relationships, twenty-five events, FR-267…312, NFR-87…106, WF-96…111 — no new bounded context and no new surface.

PROP-050 (spec v0.28.0) — ศูนย์ต้นทุนถึงระดับแปลงและอ้อยรุ่น สมุดบัญชีได้มิติต้นทุน (ห้าคอลัมน์บน JournalEntry.lines) บนทะเบียน CostCentre ที่สร้างเอง CropCycle เป็นหน่วยของผลตอบแทนพร้อมสินทรัพย์ต้นทุนก่อตั้ง การปันส่วนที่ประกาศ มีรุ่น และกลับรายการได้ ใบเสร็จที่ถ่ายไว้เป็นหลักฐานบนรายการบัญชี และกิ่งการให้ยืมของเครือข่ายสำหรับหัวหน้าโควต้าและหัวตัน ระเบียนใหม่สิบเอ็ด ขยายสิบ ถอนหนึ่ง คำศัพท์สิบสี่ชุด ความสัมพันธ์สิบแปด เหตุการณ์ยี่สิบห้า FR-267…312, NFR-87…106, WF-96…111 — ไม่มี bounded context ใหม่และไม่มีผิวหน้าใหม่

5. Related documents5. เอกสารที่เกี่ยวข้อง

6. Revision history6. ประวัติการแก้ไข

RevฉบับDateวันที่Changesการเปลี่ยนแปลง
1.02026-07-06Initial draft — three surfaces, cooperative modelร่างแรก — สามช่องทางใช้งานการใช้งาน model สหกรณ์
2.02026-07-06Tenant supersedes Cooperative; financing & regulation entities; cane_type on Delivery; Fig. 2 addedTenant แทนที่ Cooperative; entity สินเชื่อและการกำกับดูแล; cane_type ที่ Delivery; เพิ่มรูปที่ 2
2.12026-07-06Bilingual EN/TH content with navbar language switcher; removed in-page section subnav; A4 print pagination rulesเนื้อหาสองภาษา EN/TH พร้อมตัวสลับภาษาบนแถบนำทาง; นำแถบนำทางหัวข้อในหน้าออก; กฎการแบ่งหน้าพิมพ์ A4
2.32026-07-06CCS lab relocated to each mill (on-site, juice sample per truck); Delivery — QualityTest now 1 — 1; สอน. audits resultsย้ายแล็บ CCS ไปประจำโรงงาน (เก็บน้ำอ้อยทุกคันรถ); Delivery — QualityTest เป็น 1 — 1; สอน. ทำหน้าที่ตรวจสอบ
2.22026-07-06PROP-001: Plot renamed Field (land facts only); per-season Crop + append-only CropTransfer (incl. outright purchase บาท/ไร่); Delivery re-pointed to crop; virtual farmer status on FarmerPROP-001: เปลี่ยนชื่อ Plot เป็น Field (ข้อมูลที่ดินเท่านั้น); เพิ่ม Crop รายฤดูและ CropTransfer แบบต่อท้ายเท่านั้น (รวมซื้อเหมา บาท/ไร่); Delivery อ้างอิงอ้อย; สถานะลูกไร่ virtual ที่ Farmer
2.42026-07-07PROP-002 Proposal B: +10 entities (CaneVariety, SoilGroup, FarmActivity, WeatherObservation, YieldEstimate, Truck, CrushingDay, RevenueAccount, CcsAudit, BurntCaneCompliance); Field/Crop/Delivery/CanePurchasePolicy/CanePriceAnnouncement extended; Fig. 3 added; 14 new relationshipsPROP-002 ข้อเสนอ B: เพิ่ม 10 entity (CaneVariety, SoilGroup, FarmActivity, WeatherObservation, YieldEstimate, Truck, CrushingDay, RevenueAccount, CcsAudit, BurntCaneCompliance); ขยาย Field/Crop/Delivery/CanePurchasePolicy/CanePriceAnnouncement; เพิ่มรูปที่ 3; ความสัมพันธ์ใหม่ 14 รายการ
3.02026-07-07PROP-002 Proposal A: perspective document series — SPEC-ERD-CFC/-CFQ/-MILL/-GOV added (views + depth over this master); series docnav; the graph `perspectives` block declares entity ownership per customer groupPROP-002 ข้อเสนอ A: ชุดเอกสารรายมุมมอง — เพิ่ม SPEC-ERD-CFC/-CFQ/-MILL/-GOV (มุมมอง + ความลึกเหนือแม่บทนี้); แถบนำทางชุดเอกสาร; บล็อก perspectives ใน graph (กราฟ) ประกาศความเป็นเจ้าของ entity รายกลุ่ม
4.02026-07-07PROP-003: +8 entities (FinancialInstitution, ConsentGrant, CreditAssessment, LoanProduct, LoanApplication, LoanAccount, Collateral, LoanLedgerEntry); Tenant.tenant_type gains bank; CreditLine gains funding_account_id; PaymentItem second offset; Fig. 4 (lending & credit-risk); 16 new relationships; bank perspective (SPEC-ERD-FIN)PROP-003: เพิ่ม 8 entity (FinancialInstitution, ConsentGrant, CreditAssessment, LoanProduct, LoanApplication, LoanAccount, Collateral, LoanLedgerEntry); Tenant.tenant_type เพิ่ม bank; CreditLine เพิ่ม funding_account_id; PaymentItem หักกลบที่สอง; รูปที่ 4 (สินเชื่อและความเสี่ยงเครดิต); ความสัมพันธ์ใหม่ 16 รายการ; มุมมองธนาคาร (SPEC-ERD-FIN)
5.02026-07-08PROP-004 (v5.0): contractor perspective — 12 new entities (Contractor, ServiceOffering, ServiceRequest, ServiceQuote, WorkOrder, WorkAssignment, Machine, ServicePayment, Review, Endorsement, LedgerAccount, JournalEntry); ~20 new relationships; Tenant, CreditItem, FarmActivity, ConsentGrant, Truck, LoanProduct, Collateral, CreditAssessment extended; new SPEC-ERD-CEC renders the full slicePROP-004 (v5.0): มุมมองผู้รับเหมา — entity ใหม่ 12 ตัว ความสัมพันธ์ใหม่ ~20 เส้น; ขยาย Tenant, CreditItem, FarmActivity, ConsentGrant, Truck, LoanProduct, Collateral, CreditAssessment; เพิ่ม SPEC-ERD-CEC
6.02026-07-08PROP-005 (FED, spec v6.0): federation layer — Person, Tenant, TenantCapacity, Membership, SurfaceRoleGrant, PermissionCatalog, RolePermission, ViewAsSession supersede Tenant and User (tenant_type maps to the initial TenantCapacity; every department record keeps its id); all *_tenant_type + *_tenant_id pairs collapse to a single tenant_id (CreditLine lender, Truck owner, ConsentGrant grantor/grantee, CreditAssessment subject, LoanApplication applicant, LoanAccount borrower); borrower_kinds → borrower_capacities; ConsentGrant generalized tenant↔tenant with the extended 12-scope set. Fig. 1–2 still draw Tenant/User — redraw scheduled with the next diagram pass; Section 3/Section 4 are canonical.PROP-005 (FED, spec v6.0): ชั้นสหพันธ์ — Person, Tenant, TenantCapacity, Membership, SurfaceRoleGrant, PermissionCatalog, RolePermission, ViewAsSession แทนที่ Tenant และ User (tenant_type แมปเป็น TenantCapacity เริ่มต้น; ทุกเรกคอร์ดหน่วยงานคงรหัสเดิม); คู่ *_tenant_type + *_tenant_id ทั้งหมดยุบเป็น tenant_id เดียว; borrower_kinds → borrower_capacities; ConsentGrant ขยายเป็น tenant↔tenant พร้อมชุด 12 scope รูปที่ 1–2 ยังวาด Tenant/User — กำหนดวาดใหม่ในรอบแผนภาพถัดไป; ข้อ 3/ข้อ 4 เป็นฉบับทางการ
7.02026-07-08PROP-006 (OPS, spec v7.0): +1 entity Invitation (platform_ops admission ticket); Tenant extended (representation, stewarded_by), Mill extended (onboard_status, geo_location, license_no, registry_ref), TenantCapacity extended (admission, invitation_id); capacity adds operator; +4 relationships (Invitation issued_by/admits/converts, Tenant steward); representative-mill lifecycle mirrors the virtual farmer (WF-29).PROP-006 (OPS, spec v7.0): +1 entity Invitation; ขยาย Tenant (representation, stewarded_by), Mill (onboard_status และข้อมูลโรงงาน), TenantCapacity (admission, invitation_id); capacity เพิ่ม operator; +4 ความสัมพันธ์; วงจรโรงงานตัวแทนสะท้อนลูกไร่ virtual (WF-29)
8.02026-07-09PROP-009 (STR, spec v8.0): +context strategic_pricing + 7 entities (StampCheckpoint, CheckpointRate, StampEvent, StrategicAgreement, PremiumAccrual, PremiumRelease, OnwardPremiumSettlement) + their edges; ConsentGrant.scope gains strategic_terms; JournalEntry.source_type gains auto_strategic. Confidential premium walled off from regulation, never a PaymentItem component (NFR-21).PROP-009 (STR, spec v8.0): +บริบท strategic_pricing + 7 entity + เส้นเชื่อม; ConsentGrant.scope เพิ่ม strategic_terms; JournalEntry.source_type เพิ่ม auto_strategic เงินเพิ่มลับกั้นจาก regulation ไม่เป็นส่วนหนึ่งของ PaymentItem (NFR-21)
9.02026-07-09PROP-010 (GL, spec v9.0): the financial-system section — +2 contexts (receivables, cash_management) + 9 entities (ChartTemplate, Invoice, Receipt, PaymentVoucher, CashAccount, BankTransaction, Reconciliation, FiscalPeriod, FinancialStatement); LedgerAccount gains template_id/cash_account_id, JournalEntry.source_type gains auto_settlement | auto_premium | auto_credit | auto_loan | auto_receipt | auto_voucher; +9 relationships. Books are tenant-agnostic for mill/quota/grower/contractor; statements shared to a bank only via ConsentGrant scope books; PROP-009's regulator wall preserved (FR-94, NFR-24…26).PROP-010 (GL, spec v9.0): หมวดระบบการเงิน — +2 บริบท (receivables, cash_management) + 9 entity (ChartTemplate, Invoice, Receipt, PaymentVoucher, CashAccount, BankTransaction, Reconciliation, FiscalPeriod, FinancialStatement); LedgerAccount เพิ่ม template_id/cash_account_id, JournalEntry.source_type เพิ่ม auto_settlement | auto_premium | auto_credit | auto_loan | auto_receipt | auto_voucher; +9 ความสัมพันธ์ books เป็น tenant-agnostic สำหรับ mill/quota/grower/contractor; แบ่งปันให้ธนาคารผ่าน ConsentGrant scope books; คงกำแพงผู้กำกับของ PROP-009 (FR-94, NFR-24…26)
10.02026-07-10PROP-012 (settlement & CCS-by-re-note correction, spec v10.0): +4 entities — CcsReNote (quality), PaymentInstallment, MillPaymentSchedule, FinalPriceSettlement (settlement); QualityTest gains status/available_at/renote_id/ccs_tag/match_method (CCS = government re-note, not an on-site lab); PaymentBatch gains cycle_date; Delivery gains coin_no/crushing_line/tipper_slot; +6 relationships; Delivery–QualityTest rule re-grounded to re-note auto-match on the %N-### tag.PROP-012 (แก้การจ่ายเงินและ CCS จากรีโน้ต, spec v10.0): เพิ่ม 4 entity — CcsReNote, PaymentInstallment, MillPaymentSchedule, FinalPriceSettlement; QualityTest เพิ่ม status/available_at/renote_id/ccs_tag/match_method (CCS = รีโน้ตของรัฐ ไม่ใช่แล็บในโรงงาน); PaymentBatch เพิ่ม cycle_date; Delivery เพิ่ม coin_no/crushing_line/tipper_slot; +6 ความสัมพันธ์; กฎ Delivery–QualityTest ปรับเป็นการจับคู่รีโน้ตอัตโนมัติด้วยแท็ก %N-###
12.02026-07-10PROP-011 (GL, spec v12.0): +1 entity BooksProfile (context books, profile_id · owner_tenant_id · default_basis · books_edition · ledger_view · status) + a Tenant–BooksProfile owner edge; the seed rule FiscalPeriod.basis ← BooksProfile.default_basis; a books_split permission value. Configuration only — no change to the ledger schema.PROP-011 (GL, spec v12.0): +1 entity BooksProfile (บริบท books) + เส้นเชื่อม Tenant–BooksProfile; กฎ seed FiscalPeriod.basis ← BooksProfile.default_basis; ค่าสิทธิ์ books_split การตั้งค่าเท่านั้น ไม่เปลี่ยน schema บัญชี
11.02026-07-10PROP-013 (spec v11.0): +context fund with 4 entities — CaneSugarFund, FundLevyRate, FundContribution, FundCompensation; +6 relationships (Tenant–Fund, Fund–Contribution/Compensation, LevyRate–Contribution, FinalPriceSettlement–FundCompensation, Mill–FundCompensation); JournalEntry.source_type gains auto_fund. Resolves PROP-012 R1 — the fund plane is distinct from regulation (OCSF ≠ OCSB), reads-minimal / writes-narrow (NFR-29/30).PROP-013 (spec v11.0): +บริบท fund พร้อม 4 entity — CaneSugarFund, FundLevyRate, FundContribution, FundCompensation; +6 ความสัมพันธ์; JournalEntry.source_type เพิ่ม auto_fund ปิด R1 ของ PROP-012 — ระนาบกองทุนคนละหน่วยกับ regulation (OCSF ≠ OCSB) อ่านน้อย เขียนแคบ (NFR-29/30)
0.2.02026-07-13PROP-018 (spec v0.4.0): master reshaped into a landing page — executive summary, headline figures and one navigation card per perspective document. Figs 1–4, the entity catalogue and the relationship tables are superseded by the scoped diagrams and column-level persistence profiles now carried in the nine perspective docs; relationship rules remain canonical in the graph (now incl. the dataModeling physical layer).PROP-018 (spec v0.4.0): ปรับแม่บทเป็นหน้า landing — บทสรุปผู้บริหาร ตัวเลขสำคัญ และการ์ดนำทางหนึ่งใบต่อเอกสารมุมมอง ภาพที่ 1–4 บัญชี entity และตารางความสัมพันธ์ถูกแทนด้วยแผนภาพเฉพาะมุมมองและ persistence profile ระดับ column ในเอกสารมุมมองทั้งเก้า; กติกาความสัมพันธ์ยังเป็นบรรทัดฐานใน graph (รวมชั้นกายภาพ dataModeling แล้ว)
0.2.12026-07-22PROP-046 (spec v0.18.0): third infrastructure family -PLT — platform intelligence & shared master data; perspective card + docnav entry added beside FED/OPS; SPEC-ERD-PLT created (Rev 0.1.0) owning the four farmer_reliability entities (re-homed per OQ-3).PROP-046 (spec v0.18.0): ตระกูลโครงสร้างพื้นฐานที่สาม -PLT — ข่าวกรองระดับ platform และข้อมูลหลักที่ใช้ร่วมกัน; เพิ่มการ์ดมุมมองและรายการ docnav เคียง FED/OPS; สร้าง SPEC-ERD-PLT (Rev 0.1.0) เป็นเจ้าของ entity ทั้งสี่ของ farmer_reliability (ย้ายบ้านตาม OQ-3)
0.3.02026-07-25PROP-026 accepted & applied (spec v0.25.0): the factory_group context adds 13 entities and 21 relationship edges; Mill gains department_id + branch_code?, SurfaceRoleGrant gains department_id (uniqueness membership × surface × department), RolePermission.scope_type gains department_path and PermissionCatalog gains department_delegable; SPEC-ERD-GRP created (Rev 0.1.0).PROP-026 รับและ apply (spec v0.25.0): context factory_group เพิ่ม 13 entity และ 21 เส้นความสัมพันธ์; Mill เพิ่ม department_id + branch_code?, SurfaceRoleGrant เพิ่ม department_id (ความไม่ซ้ำ สมาชิกภาพ × surface × หน่วยงาน), RolePermission.scope_type เพิ่ม department_path และ PermissionCatalog เพิ่ม department_delegable; สร้าง SPEC-ERD-GRP (Rev 0.1.0)
0.3.12026-07-27Spec v0.27.0 (PROP-049 approved & applied 27 Jul 2026): the seventh market perspective family CFL — Lead Farmer (หัวตัน) joins the perspective cards. The second grower tier gains the lead capacity on existing surfaces, the lead_network context with LeadMandate and NetworkAllocation, WF-92…95, FR-254…266 and NFR-81…86. No new surface.spec v0.27.0 (PROP-049 อนุมัติและ apply 27 ก.ค. 2569): ตระกูล perspective ฝั่งตลาดลำดับที่เจ็ด CFL — หัวตัน เข้าร่วมในการ์ด perspective ชั้นที่สองของชาวไร่ได้ capacity lead บนช่องทางที่มีอยู่ context lead_network พร้อม LeadMandate และ NetworkAllocation, WF-92…95, FR-254…266 และ NFR-81…86 ไม่มี surface ใหม่
0.3.22026-07-27PROP-050 (spec v0.28.0, approved & applied 27 Jul 2026; all 26 OQs client-closed): cost centres to field & crop level — the cost dimension on the ledger, the crop cycle and its establishment asset, declared allocation, evidence in the cloud, the network lending branch, FR-267…312 / NFR-87…106 / WF-96…111PROP-050 (spec v0.28.0 อนุมัติและ apply 27 ก.ค. 2569; ปิดคำถามเปิดครบ 26 ข้อ): ศูนย์ต้นทุนถึงระดับแปลงและอ้อยรุ่น — มิติต้นทุนบนสมุดบัญชี รอบปลูกและสินทรัพย์ต้นทุนก่อตั้ง การปันส่วนที่ประกาศไว้ หลักฐานบนคลาวด์ กิ่งการให้ยืมของเครือข่าย FR-267…312 / NFR-87…106 / WF-96…111
0.4.02026-08-03PROP-075 approved & applied — spec v0.46.0. The master index follows the merge: Department and LegalEntity are retired as entities and become Department (หน่วยงาน), homed in SPEC-ERD-FED together with the two new entities Site and DepartmentSite. Mill.legal_entity_id → Mill.department_id, plus Mill.site_id. Two new registers are DATA in the graph: legalForms (11 Thai legal forms + null) and siteKinds.PROP-075 อนุมัติและ apply — spec v0.46.0 ดัชนีหลักตามการรวม Department กับ LegalEntity เป็น Department และเพิ่ม Site กับ DepartmentSite
0.5.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.5.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.22026-08-03Escape-sequence repair — spec v0.48.1 (patch). 134 literal backslash-u escape sequences decoded to the characters they stood for, so Thai in this document reads as Thai again instead of as a run of six ASCII characters. Found by check V-10 of tools/validate.html on its first run (NFR-143, PROP-076, spec v0.48.0) and carried as a dated OVERRIDE in SPEC-APP-PLT Rev 0.9.0; this row discharges that override for this document. Where an escape hid the section glyph, the text now reads Section N in English and ข้อ N in Thai, per project rule. No model change: not one requirement, entity, event, state or number moved.ซ่อมลำดับหลบหนี — spec v0.48.1 (patch) ถอดลำดับหลบหนีที่ยังเป็นตัวอักษร 134 จุด กลับเป็นอักขระที่มันแทน ภาษาไทยในเอกสารนี้จึงอ่านเป็นภาษาไทยอีกครั้ง ไม่ใช่ตัวอักษร ASCII หกตัวเรียงกัน พบโดยการตรวจ V-10 ของ tools/validate.html ในการรันครั้งแรก (NFR-143, PROP-076, spec v0.48.0) และถูกบันทึกเป็น OVERRIDE ที่มีวันที่ใน SPEC-APP-PLT Rev 0.9.0 แถวนี้ปลดการยกเว้นนั้นสำหรับเอกสารฉบับนี้ ที่ใดที่ escape ซ่อนสัญลักษณ์หัวข้อไว้ ข้อความอ่านเป็น Section N ในภาษาอังกฤษ และ ข้อ N ในภาษาไทย ตามกฎของโครงการ ไม่มีการเปลี่ยนแบบจำลอง: ไม่มี requirement เอนทิตี เหตุการณ์ สถานะ หรือตัวเลขใดขยับ