Cane Agency · Specification · Perspective documentสถาบันอ้อย · เอกสารข้อกำหนด · เอกสารรายมุมมอง
This document reads the platform data model from the bank's side: the entities this perspective owns (its documents are the deep reference), the entities it shares — read only through a scoped, revocable ConsentGrant (PDPA, NFR-08) — and the contracts it holds with the four operating groups. Every definition here mirrors SPEC-ERD and graph/spec-graph.json — a perspective document adds actor-relevant reading, never divergent attributes. The bank never mutates the core: it reads it, scores it, lends against it, and is repaid from the delivery receivable at settlement.
เอกสารนี้อ่าน model ข้อมูลของ platform จากฝั่งธนาคาร: entity ที่มุมมองนี้เป็นเจ้าของ (เอกสารของมุมมองนี้คือเอกสารอ้างอิงเชิงลึก), entity ที่ใช้ร่วม — อ่านได้เฉพาะผ่าน ConsentGrant ที่จำกัดขอบเขตและเพิกถอนได้ (PDPA, NFR-08) — และสัญญาที่มีต่อสี่กลุ่มปฏิบัติการ ทุกนิยามสะท้อน SPEC-ERD และ graph/spec-graph.json — เอกสารรายมุมมองเพิ่มการตีความที่เกี่ยวกับผู้ใช้ ไม่สร้างแอตทริบิวต์ที่แตกต่าง ธนาคารไม่แก้ไขแกนกลาง: อ่าน ให้คะแนน ปล่อยกู้ และรับชำระคืนจากลูกหนี้การค้าตอนปิดงวด
| Relationความเกี่ยวข้อง | EntitiesEntity |
|---|---|
| Ownsเป็นเจ้าของ | FinancialInstitution · ConsentGrant · CreditAssessment · LoanProduct · LoanApplication · LoanAccount · Collateral · LoanLedgerEntry |
| Shares (consent-gated)ใช้ร่วม (ต้องมีความยินยอม) | Tenant · User · Farmer · Mill · Season · Quota · Crop · Field · Delivery · WeighTicket · QualityTest · YieldEstimate · FarmActivity · CreditLine · Repayment · PaymentItem · CanePriceAnnouncement |
| Contextsบริบท | credit_risk · lending |
| WorkflowsWorkflow | WF-13 · WF-14 · WF-15 · WF-16 · WF-17 |
Scoped view of the platform model from this perspective, rendered from the graph (entities · relationships · dataModeling, v0.4.0). Solid boxes are entities documented at full depth in this family — bold = primary key, gold = foreign key. Dashed boxes are shared entities; the label names their home document. Cardinalities read at each line end.
มุมมองเฉพาะด้านของ model ทั้ง platform render จาก graph (entities · relationships · dataModeling, v0.4.0) กล่องเส้นทึบคือ entity ที่บันทึกเชิงลึกในเอกสารตระกูลนี้ — ตัวหนา = primary key, สีทอง = foreign key กล่องเส้นประคือ entity ที่ใช้ร่วม โดยป้ายระบุเอกสาร home; อ่าน cardinality ที่ปลายเส้นแต่ละด้าน
| Entity · codeEntity · รหัส | Attributesแอตทริบิวต์ | Rules that biteกฎที่มีผล |
|---|---|---|
| FinancialInstitution FIN-### | fi_id, tenant_id, name, fi_type, license_no, bot_code?, province | The operating institution under our bank tenant (like Mill under a factory). fi_type: state_bank | commercial_bank | cooperative | fund | investor.สถาบันที่ดำเนินงานภายใต้ tenant bank ของเรา (เหมือน Mill ใต้ tenant โรงงาน) fi_type: state_bank | commercial_bank | cooperative | fund | investor |
| ConsentGrant CNS-######## | consent_id, grantor_tenant_type, grantor_tenant_id, grantee_fi_id, scope[], purpose, granted_at, expires_at, status, revoked_at? | Our licence to read another tenant's data. scope ⊆ {delivery_history, ccs_quality, quota, credit_history, farm_activity, yield, contact, reliability_score}; status: active | expired | revoked. No shared-entity read resolves without an active grant covering the scope; revocation is append-only (NFR-08). v0.29.0 (PROP-037): reliability_score delivers the Reliability Extract and nothing else — score + band + formula_version + computed_at, a trailing-three-season summary and tenure; raw ReliabilityEvent rows, mill identities and delivery facts never resolve (FR-314, NFR-108).ใบอนุญาตของเราในการอ่านข้อมูลฝ่ายอื่น scope ⊆ {delivery_history, ccs_quality, quota, credit_history, farm_activity, yield, contact, reliability_score}; status: active | expired | revoked ไม่มีการอ่าน entity ที่ใช้ร่วมหากไม่มีความยินยอมที่ยังใช้อยู่ครอบคลุม scope; เพิกถอนแบบต่อท้าย (NFR-08) v0.29.0 (PROP-037): reliability_score ส่งมอบเฉพาะ Reliability Extract — คะแนน + ชั้น + เวอร์ชันสูตร + เวลาคำนวณ สรุปสามฤดูหลังสุด และความยาวประวัติ; แถวเหตุการณ์ดิบ ชื่อโรงงาน และรายละเอียดการส่งมอบไม่ resolve (FR-314, NFR-108) |
| CreditAssessment CAS-######## | assessment_id, fi_id, application_id?, subject_tenant_type, subject_tenant_id, consent_id, score, grade, model_ver, data_window, factors_snapshot, decision_reasons?, assessed_at | The cane-specific score. factors_snapshot freezes the exact features used so a decision is reproducible & explainable (NFR-09). Requires an active ConsentGrant; declines record decision_reasons.คะแนนเฉพาะอ้อย factors_snapshot ตรึงคุณลักษณะที่ใช้จริงให้ตัดสินใจทำซ้ำและอธิบายได้ (NFR-09) ต้องมี ConsentGrant ที่ active; การปฏิเสธบันทึก decision_reasons |
| LoanProduct LNP-#### | product_id, fi_id, product_type, borrower_kinds[], currency, principal_min, principal_max, interest_rate_bps, tenor_months, collateral_required, subsidy_note?, status | product_type: crop_input_loan | working_capital | equipment_term | quota_backed_line | supply_chain_finance. borrower_kinds ⊆ {cane_farmer, quota_farmer, sugar_factory}; subsidy_note records state schemes.product_type: crop_input_loan | working_capital | equipment_term | quota_backed_line | supply_chain_finance borrower_kinds ⊆ {cane_farmer, quota_farmer, sugar_factory}; subsidy_note บันทึกโครงการรัฐ |
| LoanApplication LNA-######## | application_id, fi_id, product_id, applicant_tenant_type, applicant_tenant_id, season_id?, requested_amt, purpose, consent_id, assessment_id?, status, decided_by?, submitted_at | status: draft | submitted | scoring | underwriting | approved | rejected | withdrawn. Cannot enter scoring without a covering ConsentGrant; approved requires an assessment_id.status: draft | submitted | scoring | underwriting | approved | rejected | withdrawn เข้าสู่ scoring ไม่ได้ถ้าไม่มี ConsentGrant คุ้มครอง; approved ต้องมี assessment_id |
| LoanAccount LNC-25##-###### | account_id, fi_id, application_id, borrower_tenant_type, borrower_tenant_id, principal_amt, outstanding_amt, interest_rate_bps, disbursed_at, maturity_at, repay_source, status | status: current | delinquent | npl | restructured | closed | written_off — the loan state machine (SPEC-PWF-FIN Section 8). repay_source: cash | settlement_offset | wholesale_onlend. Formal & separate from เงินเกี๊ยว.status: current | delinquent | npl | restructured | closed | written_off — state machine สินเชื่อ (SPEC-PWF-FIN ข้อ 8) repay_source: cash | settlement_offset | wholesale_onlend เป็นทางการและแยกจากเงินเกี๊ยว |
| Collateral COL-######## | collateral_id, application_id?, account_id?, collateral_type, reference_id?, valuation_amt, valuation_basis, status | collateral_type: standing_crop (→Crop) | quota (→Quota) | delivery_receivable (→future PaymentItem) | land (→Field) | contract (→CreditLine/CropTransfer) | clean. A delivery_receivable pledge enables settlement-offset repayment (registered lien ranks first).collateral_type: standing_crop (→Crop) | quota (→Quota) | delivery_receivable (→PaymentItem อนาคต) | land (→Field) | contract (→CreditLine/CropTransfer) | clean การจำนำ delivery_receivable ทำให้ชำระคืนแบบหักกลบตอนปิดงวดได้ (สิทธิที่จดแจ้งมาก่อน) |
| LoanLedgerEntry LLE-######## | entry_id, account_id, entry_type, amount, payment_item_id?, value_date, posted_at, note? | Append-only ledger (NFR-05). entry_type: disbursement | repayment | interest_accrual | fee | write_off | adjustment. payment_item_id links a settlement-offset repayment; outstanding_amt on the account is the running balance.สมุดบัญชีแบบต่อท้าย (NFR-05) entry_type: disbursement | repayment | interest_accrual | fee | write_off | adjustment payment_item_id เชื่อมการชำระคืนแบบหักกลบ; outstanding_amt บนบัญชีคือยอดคงเหลือ |
| EntityEntity | Ownerเจ้าของ | What the bank reads (scope)ธนาคารอ่านอะไร (scope) |
|---|---|---|
| Delivery · WeighTicket · QualityTest | MILL | Multi-season net tonnage, per-truck CCS & trash trend — the hard-to-fake production record behind the score (scope delivery_history, ccs_quality).ปริมาณสุทธิหลายฤดู แนวโน้ม CCS/สิ่งปนเปื้อนรายคันรถ — บันทึกการผลิตที่ปลอมยากเบื้องหลังคะแนน (scope delivery_history, ccs_quality) |
| Quota | MILL / CFQ | committed_t vs delivered_t — reliability against a commitment (scope quota).committed_t เทียบ delivered_t — ความน่าเชื่อถือต่อคำมั่น (scope quota) |
| CreditLine · Repayment | CFQ | On-platform เงินเกี๊ยว repayment behaviour — the closest thing to a bureau score this population has (scope credit_history).พฤติกรรมชำระคืนเงินเกี๊ยวบน platform — สิ่งใกล้เคียงคะแนนบูโรที่สุดของกลุ่มนี้ (scope credit_history) |
| Crop · Field · YieldEstimate · FarmActivity | CFC | Standing crop, land, expected yield and financed-input application — forward cash-flow signal & collateral basis (scope yield, farm_activity).อ้อยยืนต้น ที่ดิน ประมาณการผลผลิต และการใช้ปัจจัยที่กู้ — สัญญาณกระแสเงินสดล่วงหน้าและฐานหลักประกัน (scope yield, farm_activity) |
| PaymentItem | MILL | The future settlement stream a delivery_receivable pledges against; an assigned pledge routes part of the deduction to a LoanLedgerEntry(repayment).กระแสการปิดงวดในอนาคตที่ delivery_receivable จำนำไว้; การโอนสิทธิส่งส่วนหนึ่งของการหักไปเป็น LoanLedgerEntry(repayment) |
| Tenant · User · Farmer · Mill · Season · CanePriceAnnouncement | platform / GOV | Identity, season and price references — the frame every loan is booked in.ตัวตน ฤดู และราคาอ้างอิง — กรอบที่ทุกสินเชื่อถูกบันทึกอยู่ |
Normative physical model for the 8 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. 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 ทั้ง 8 รายการที่ home อยู่ในเอกสารนี้ render จาก block dataModeling ใน graph ชนิดข้อมูลอนุมานจาก typeConventions (กติกาแรกที่เข้าเป็นผล): เงิน = bigint สตางค์ · น้ำหนัก = integer กก. · ตัน = numeric(12,3) · เวลา = timestamptz UTC · id = uuid v7 ทุก FK มี index ตามข้อตกลง (ON DELETE RESTRICT); index ที่ระบุคือส่วนเพิ่ม ชุดค่า enum อยู่ในหมายเหตุ entity และ state machine ของ graph
| ColumnColumn | Typeชนิด | Null | Defaultค่าตั้งต้น | Key / refKey / อ้างอิง |
|---|---|---|---|---|
| fi_id | uuid | — | uuid_v7() | PK |
| tenant_id | uuid | — | — | FK → tenant |
| name | text | — | — | |
| fi_type | text (enum) | — | — | |
| license_no | text | — | — | |
| bot_code | text | ✓ | — | |
| province | smallint | — | — | Province enum · TIS 1099-2548 (PROP-047) |
| ColumnColumn | Typeชนิด | Null | Defaultค่าตั้งต้น | Key / refKey / อ้างอิง |
|---|---|---|---|---|
| consent_id | uuid | — | uuid_v7() | PK |
| grantor_tenant_id | uuid | — | — | FK → tenant |
| grantee_tenant_id | uuid | — | — | FK → tenant |
| scope | text (enum) | — | — | |
| purpose | text | — | — | |
| granted_at | timestamptz | — | — | |
| expires_at | timestamptz | — | — | |
| status | text (enum) | — | — | |
| revoked_at | timestamptz | ✓ | — |
| ColumnColumn | Typeชนิด | Null | Defaultค่าตั้งต้น | Key / refKey / อ้างอิง |
|---|---|---|---|---|
| assessment_id | uuid | — | uuid_v7() | PK |
| fi_id | uuid | — | — | FK → financial_institution |
| application_id | uuid | ✓ | — | FK → loan_application |
| subject_tenant_id | uuid | — | — | FK → tenant |
| consent_id | uuid | — | — | FK → consent_grant |
| score | integer | — | — | |
| grade | text (enum) | — | — | |
| model_ver | text | — | — | |
| data_window | text | — | — | |
| factors_snapshot | jsonb | — | — | |
| decision_reasons | jsonb | ✓ | — | |
| assessed_at | timestamptz | — | — |
| ColumnColumn | Typeชนิด | Null | Defaultค่าตั้งต้น | Key / refKey / อ้างอิง |
|---|---|---|---|---|
| product_id | uuid | — | uuid_v7() | PK |
| fi_id | uuid | — | — | FK → financial_institution |
| product_type | text (enum) | — | — | |
| borrower_capacities | jsonb | — | — | |
| currency | char(3) | — | — | |
| principal_min | bigint (satang) | — | — | |
| principal_max | bigint (satang) | — | — | |
| interest_rate_bps | integer (bps) | — | — | |
| tenor_months | integer | — | — | |
| collateral_required | boolean | — | — | |
| subsidy_note | text | ✓ | — | |
| status | text (enum) | — | — |
| ColumnColumn | Typeชนิด | Null | Defaultค่าตั้งต้น | Key / refKey / อ้างอิง |
|---|---|---|---|---|
| application_id | uuid | — | uuid_v7() | PK |
| fi_id | uuid | — | — | FK → financial_institution |
| product_id | uuid | — | — | FK → loan_product |
| applicant_tenant_id | uuid | — | — | FK → tenant |
| season_id | uuid | ✓ | — | FK → season |
| requested_amt | bigint (satang) | — | — | |
| purpose | text | — | — | |
| consent_id | uuid | — | — | FK → consent_grant |
| assessment_id | uuid | ✓ | — | FK → credit_assessment |
| status | text (enum) | — | — | |
| decided_by | uuid | ✓ | — | FK → membership |
| submitted_at | timestamptz | — | — |
| ColumnColumn | Typeชนิด | Null | Defaultค่าตั้งต้น | Key / refKey / อ้างอิง |
|---|---|---|---|---|
| account_id | uuid | — | uuid_v7() | PK |
| fi_id | uuid | — | — | FK → financial_institution |
| application_id | uuid | — | — | FK → loan_application |
| borrower_tenant_id | uuid | — | — | FK → tenant |
| principal_amt | bigint (satang) | — | — | |
| outstanding_amt | bigint (satang) | — | — | |
| interest_rate_bps | integer (bps) | — | — | |
| disbursed_at | timestamptz | — | — | |
| maturity_at | timestamptz | — | — | |
| repay_source | text (enum) | — | — | |
| status | text (enum) | — | — |
| ColumnColumn | Typeชนิด | Null | Defaultค่าตั้งต้น | Key / refKey / อ้างอิง |
|---|---|---|---|---|
| collateral_id | uuid | — | uuid_v7() | PK |
| application_id | uuid | ✓ | — | FK → loan_application |
| account_id | uuid | ✓ | — | FK → loan_account |
| collateral_type | text (enum) | — | — | |
| reference_id | text | ✓ | — | |
| valuation_amt | bigint (satang) | — | — | |
| valuation_basis | text | — | — | |
| status | text (enum) | — | — |
| ColumnColumn | Typeชนิด | Null | Defaultค่าตั้งต้น | Key / refKey / อ้างอิง |
|---|---|---|---|---|
| entry_id | uuid | — | uuid_v7() | PK |
| account_id | uuid | — | — | FK → loan_account |
| entry_type | text (enum) | — | — | |
| amount | bigint (satang) | — | — | |
| payment_item_id | uuid | ✓ | — | FK → payment_item |
| value_date | date | — | — | |
| posted_at | timestamptz | — | — | |
| note | text | ✓ | — |
One row per entity in this perspective. Mutability: mutable · immutable_
หนึ่งแถวต่อ entity ในมุมมองนี้ Mutability: mutable · immutable_
| Entity | Tableตาราง | PK | Unique | Key indexesIndex หลัก | Mutability | PDPA | Profile |
|---|---|---|---|---|---|---|---|
| FinancialInstitution | financial_institution | fi_id | (license_no) | (tenant_id) | mutable | operational | Section 6ข้อ 6 |
| ConsentGrant | consent_grant | consent_id | — | (grantor_tenant_id,status) (grantee_tenant_id,scope,status) (expires_at) | immutable_ | consent_ | Section 6ข้อ 6 |
| CreditAssessment | credit_assessment | assessment_id | — | (subject_tenant_id,assessed_at) (fi_id) (application_id) | append_ | consent_ | Section 6ข้อ 6 |
| LoanProduct | loan_product | product_id | — | (fi_id,status) | reference | operational | Section 6ข้อ 6 |
| LoanApplication | loan_application | application_id | — | (fi_id,status) (applicant_tenant_id) (product_id) | immutable_ | operational | Section 6ข้อ 6 |
| LoanAccount | loan_account | account_id | (application_id) | (borrower_tenant_id,status) (fi_id) | mutable | operational | Section 6ข้อ 6 |
| Collateral | collateral | collateral_id | — | (application_id) (account_id) (collateral_type,reference_id) | mutable | operational | Section 6ข้อ 6 |
| LoanLedgerEntry | loan_ledger_entry | entry_id | — | (account_id,value_date) (payment_item_id) | append_ | operational | Section 6ข้อ 6 |
Transaction boundaries touching 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). Repository and unit-of-work lifetimes for these aggregates are specified in the sibling SPEC-DDD document (scoped per request — see the component lifetime map).
ขอบเขต transaction ที่เกี่ยวกับมุมมองนี้ จาก dataModeling.aggregates ใน graph ภายในขอบเขต invariant ที่ระบุ commit แบบ atomic ใน database transaction เดียว; ข้ามขอบเขตผลไหลผ่าน domain event (eventual consistency) lifetime ของ repository และ unit of work ของ aggregate เหล่านี้กำหนดในเอกสาร SPEC-DDD พี่น้อง (scoped ต่อคำขอ — ดูผัง lifetime ของ component)
| Aggregate root | Membersสมาชิก | Context | Transaction ruleกติกา transaction |
|---|---|---|---|
| ConsentGrant | ConsentGrant | credit_risk | Terms frozen at grant; only status (active → expired/revoked) transitions. Every consent-gated read re-evaluates the grant in-request.เงื่อนไขตรึงตอนให้ความยินยอม; เปลี่ยนได้เฉพาะสถานะ (active → expired/revoked) การอ่านที่ต้องใช้ความยินยอมตรวจ grant ซ้ำทุกคำขอ |
| CreditAssessment | CreditAssessment | credit_risk | Immutable snapshot — factors_snapshot + model_ver make every decision reproducible (NFR-09).snapshot แก้ไขไม่ได้ — factors_snapshot + model_ver ทำให้ทุกการตัดสินใจทำซ้ำได้ (NFR-09) |
| LoanProduct | LoanProduct | lending | Reference root — product terms version by row; live applications pin their product row.root อ้างอิง — เงื่อนไขผลิตภัณฑ์แยกตามแถว; ใบสมัครที่ค้างอยู่ตรึงแถวผลิตภัณฑ์ของตน |
| LoanApplication | LoanApplication · Collateral | lending | Decision transitions freeze the application; application-stage collateral closes with the decision (loan state machine).การตัดสินใจตรึงใบสมัคร; หลักประกันชั้นใบสมัครปิดพร้อมการตัดสินใจ (state machine สินเชื่อ) |
| LoanAccount | LoanAccount · LoanLedgerEntry | lending | outstanding_amt = principal − Σ repayment entries, updated in the same transaction as each appended entry.outstanding_amt = เงินต้น − Σ รายการชำระ ปรับใน transaction เดียวกับรายการที่ append |
| FinancialInstitution | FinancialInstitution | federation | Registry root under a bank tenant.root ทะเบียนภายใต้ tenant ธนาคาร |
| Revฉบับ | Dateวันที่ | Changesการเปลี่ยนแปลง |
|---|---|---|
| 1.0 | 2026-07-07 | Initial version — PROP-003 (spec v4.0): financial-institution perspective of the lending & credit-risk data model (8 owned entities; consent-gated reads of the shared core)ฉบับแรก — PROP-003 (spec (สเปก) v4.0): มุมมองสถาบันการเงินต่อ model ข้อมูลสินเชื่อและความเสี่ยงเครดิต (entity ที่เป็นเจ้าของ 8 รายการ; อ่านแกนกลางที่ใช้ร่วมผ่านความยินยอม) |
| 1.1 | 2026-07-08 | PROP-005 (FED, spec v6.0): perspective re-keyed from customer group to capacity (document code unchanged); identity defers to the federation context (Person · Tenant · TenantCapacity · Membership); every *_tenant_type + *_tenant_id pair collapses to tenant_id.PROP-005 (FED, spec v6.0): มุมมองเปลี่ยนคีย์จากกลุ่มลูกค้าเป็น capacity (รหัสเอกสารคงเดิม); อัตลักษณ์อ้างอิงบริบท federation (Person · Tenant · TenantCapacity · Membership); คู่ *_tenant_type + *_tenant_id ทั้งหมดยุบเป็น tenant_id |
| 0.1.0 | 2026-07-11 | PROP-014 (spec v0.1.0): semantic versioning restarted at 0.1.0 (was Rev 1.1 · 2026-07-08); docnav updated for the gov_cluster split — GOV re-homed to docs/gov/ocsb/, new BOARD (กอน.) sibling added.PROP-014 (spec v0.1.0): รีสตาร์ท semantic versioning ที่ 0.1.0 (เดิม Rev 1.1 · 2026-07-08); ปรับ docnav ตามการแยก gov_cluster — ย้าย GOV ไป docs/gov/ocsb/ เพิ่มพี่น้อง BOARD (กอน.) |
| 0.2.0 | 2026-07-13 | PROP-018 (spec v0.4.0): comprehensive perspective data modeling — scoped entity-relationship diagrams (Fig. 1–2), column-level persistence profiles for the 8 home entities (Section 6), keys / indexes / mutability & PDPA classes (Section 7) and aggregate consistency boundaries (Section 8) — all rendered from the graph's new dataModeling block.PROP-018 (spec v0.4.0): การ model ข้อมูลรายมุมมองฉบับครบ — แผนภาพความสัมพันธ์ entity เฉพาะมุมมอง (ภาพที่ 1–2), persistence profile ระดับ column ของ entity ที่ home อยู่ฉบับนี้ 8 รายการ (ข้อ 6), key / index / ชั้น mutability และ PDPA (ข้อ 7) และขอบเขตความสอดคล้องของ aggregate (ข้อ 8) ทั้งหมด render จาก block ใหม่ dataModeling ใน graph |
| 0.3.0 | 2026-07-23 | PROP-047 (spec v0.19.0): FinancialInstitution.province re-typed text → smallint carrying the Province enum code (TIS 1099-2548); registry in the shared kernel, CHECK generated from the enum — no reference table / FK / seed.PROP-047 (spec v0.19.0): FinancialInstitution.province เปลี่ยนชนิดจาก text → smallint เก็บรหัส enum Province (มอก. 1099-2548); ทะเบียนอยู่ใน shared kernel, CHECK generate จาก enum — ไม่มีตารางอ้างอิง / FK / seed |
| 0.4.0 | 2026-07-28 | PROP-037 applied (spec v0.29.0) — ConsentGrant scope gains reliability_score, the only route by which a reliability score reaches a lender; the value delivers the defined Reliability Extract (FR-314) and withholds raw events, mill identities and delivery facts (NFR-108). No new entity and no schema change beyond the enum.apply PROP-037 (spec v0.29.0) — scope ของ ConsentGrant เพิ่มค่า reliability_score ทางเดียวที่คะแนนไปถึงผู้ให้กู้ ส่งมอบ Reliability Extract ที่นิยามไว้ ไม่มี entity ใหม่ |
| 0.5.0 | 2026-08-03 | PROP-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.1 | 2026-08-03 | PROP-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 |