Fab Forward Dev/

DDD ドキュメント

PMS ユビキタス言語辞書 / Ubiquitous Language Dictionary

SSOT (Single Source of Truth) — 業務用語・英語・変数名・テーブル名の正規対応表

この辞書はステークホルダー間のコミュニケーション齟齬を防ぐための共通言語です。 コード中の命名は必ずこの辞書に準拠してください。

: レガシーテーブル名はインスタンス固有の参照値。詳細は docs/ddd/pms/instances/{tenant}/ を参照。

対応ドメイン: docs/ddd/sales/01-ubiquitous-language.md (Sales CRM 側の用語辞書)


凡例 / Legend

説明
業務用語社内で日常使われる日本語
English (Domain)DDD モデル上の英語名
Type / Variableコード上の型名・変数名 (PascalCase / camelCase)
Legacy Table旧システムのテーブル名 (T_ / M_ / P_)
Modern Table新スキーマのテーブル名 (snake_case)

1. コアドメイン: 生産管理 (PMS)

1.1 見積・受注 (Quotation & Order)

業務用語English (Domain)Type / VariableLegacy TableModern Table
見積QuotationQuotation / quotationT_MITU_HEDquotations
見積明細Quotation LineQuotationLine / quotationLineT_MITU_BDYquotation_lines
受注Sales OrderSalesOrder / salesOrderT_ORDERorders
見積受注連携Quotation-Order LinkQuotationOrderLink / quotationOrderLinkT_MITU_ORDERquotation_order_links
受注 (顧客発注)Customer OrderCustomerOrder / customerOrderT_JUCHUcustomer_orders
見積番号Quotation NumberquotationNumberMITUMORI_NOquotation_number
改訂番号Revision SeqrevisionSeqKAITEI_NOrevision_seq
見積ステータスQuotation StatusquotationStatusMITUMORI_STSquotation_status
オーダNoOrder NumberorderNumberORDER_NOorder_number
親オーダNoParent Order NumberparentOrderNumberORDER_NOPparent_order_number
受注日Order DateorderDateORDER_DATEorder_date
納期Due DatedueDateNOUKIdue_date
完了予定日Scheduled DatescheduledDateYOTEI_DATEscheduled_date
完了日Completed DatecompletedDateKANRYO_DATEcompleted_date
交番Koban NumberKobanNumber / kobanNumberkoban_number
業務指示書Work InstructionWorkInstruction / workInstructionwork_instructions
BDI ナンバーBDI NumberBdiNumber / bdiNumberbdi_number
枝番交番Branch KobanBranchKoban / branchKobanbranch_koban

1.2 外注手配 (Procurement)

業務用語English (Domain)Type / VariableLegacy TableModern Table
手配Purchase OrderPurchaseOrder / purchaseOrderT_TEHAIpurchase_orders
注文番号PO NumberpoNumberCHUMON_NOpo_number
手配状況Procurement StatusprocurementStatusTEHAI_STSprocurement_status
手配区分Procurement TypeprocurementTypeTEHAI_KBNprocurement_type
手配済みフラグIs OrderedisOrderedTEHAI_SUMIis_ordered
手配不要フラグIs Order UnnecessaryisOrderUnnecessaryTEHAI_FUYOis_order_unnecessary
発注日PO DatepoDateCHUMON_DATEpo_date
ベンダー階層Vendor TierVendorTier / vendorTiervendor_tier
部品分類Parts CategoryPartsCategory / partsCategoryparts_category
連動部品Linked Parts SetLinkedPartsSet / linkedPartsSetlinked_parts_sets

1.3 受入 (Goods Receiving)

業務用語English (Domain)Type / VariableLegacy TableModern Table
受入Goods ReceiptGoodsReceipt / goodsReceiptT_UKEIREreceiving_records
受入区分Receiving TypereceivingTypeUKEIRE_KBNreceiving_type
受入日Receiving DatereceivingDateUKEIRE_DATEreceiving_date
受入合計数Total ReceivedtotalReceivedUKEIRE_TOTALtotal_received

1.4 製作指示・作業日報 (Internal Production)

業務用語English (Domain)Type / VariableLegacy TableModern Table
製作指示Production InstructionProductionInstruction / productionInstructionT_SSIJIproduction_orders
作業日報Work ReportWorkReport / workReportT_NIPPOwork_logs
製作実績Production RecordProductionRecord / productionRecordT_SJISKproduction_records
指示番号Production Order NumberproductionOrderNumberSIJI_NOproduction_order_number
指示状況Production StatusproductionStatusSIJI_STSproduction_status
作業日Work DateworkDateSAGYO_DATEwork_date
作業開始時間Work Start TimeworkStartTimeSAGYO_STR_TIMEwork_start_time
作業終了時間Work End TimeworkEndTimeSAGYO_END_TIMEwork_end_time
作業時間Work HoursworkHoursSAGYO_TIMEwork_hours
製作リストFabrication ListFabricationList / fabricationListfabrication_lists
購入品リストPurchased Parts ListPurchasedPartsList / purchasedPartsListpurchased_parts_lists
ユニット番号Unit NumberUnitNumber / unitNumberunit_number
スキルマップSkill MatrixSkillMatrix / skillMatrixskill_matrices
大日程Capacity CalendarCapacityCalendar / capacityCalendarcapacity_calendars

1.5 売上・売掛・入金 (Sales & Billing)

業務用語English (Domain)Type / VariableLegacy TableModern Table
検収Delivery InspectionDeliveryInspection / deliveryInspectionT_KENSHUdelivery_inspections
売上Sales InvoiceSalesInvoice / salesInvoiceT_URIAGEsales_invoices
売掛AR Balance (CQRS)ARBalance / arBalanceT_URIKAKEar_balances
請求残高Invoice Balance (CQRS)InvoiceBalance / invoiceBalanceT_SKZANinvoice_balances
入金Cash ReceiptCashReceipt / cashReceiptT_NYUKINcash_receipts
納品案内Delivery AdviceDeliveryAdvice / deliveryAdviceT_NOUANNdelivery_advices
請求確定日Billing Confirmed DatebillingConfirmedDateSEIKYUBIbilling_confirmed_date
請求残高Billing BalancebillingBalanceSEIKYU_ZANbilling_balance
立ち会い検査Witness InspectionWitnessInspection / witnessInspectionwitness_inspections
赤伝交番 (不具合交番)Service KobanServiceKoban / serviceKobanservice_koban
販管費振替Bookkeeping ReclassificationBookkeepingReclassification / bookkeepingReclassificationbookkeeping_reclassifications

1.6 買掛・支払 (Accounts Payable)

業務用語English (Domain)Type / VariableLegacy TableModern Table
仕入AP ReceiptAPReceipt / apReceiptT_SHIIREap_receipts
支払Supplier PaymentSupplierPayment / supplierPaymentT_SIHARAIsupplier_payments
買掛AP Balance (CQRS)APBalance / apBalanceT_KAIKAKEap_balances
支払区分Payment TypepaymentTypeSIHARAI_KBNpayment_type
支払確定日Payment Confirmed DatepaymentConfirmedDateSIHARAIBIpayment_confirmed_date
支払残高Payment BalancepaymentBalanceSIHARAI_ZANpayment_balance

1.7 原価分析 (Cost Analysis)

業務用語English (Domain)Type / VariableLegacy TableModern Table
原価レポートCost ReportCostReport / costReport— (集計ビュー)
原価CostcostGENKA
検収額Inspection AmountinspectionAmountKENSHUGAKU
仕掛Work In ProgressworkInProgressSIKAKARI

1.8 製品マスタ・機種関連 (Product Catalog & Equipment)

業務用語English (Domain)Type / VariableLegacy TableModern Table
機種Equipment / ModelEquipment / equipmentequipments
機種マスタEquipment CatalogEquipmentCatalog / equipmentCatalogequipment_catalogs
世代/リビジョンGeneration CodeGenerationCode / generationCodegeneration_code

1.9 据付・サービス関連 (Installation & Service)

業務用語English (Domain)Type / VariableLegacy TableModern Table
据付InstallationInstallation / installationinstallations
試運転CommissioningCommissioning / commissioningcommissionings

1.10 在庫管理 (Inventory)

新規集約 (Phase 1)bc-inventory バウンデッドコンテキスト。在庫台帳 (ZKDP) のモダン化。

業務用語English (Domain)Type / VariableLegacy TableModern Table
在庫台帳Stock LedgerStockLedger / stockLedgerZKDPstock_ledgers
引当明細AllocationAllocation / allocationZKDP (引当フィールド)allocations
在庫変更ログStock MutationStockMutation / stockMutationZLGPstock_mutations
需要参照Demand ReferenceDemandRef / demandRef
供給参照Supply ReferenceSupplyRef / supplyRef
在庫区分Stock SegmentStockSegment / stockSegment— (ZKDP 内区分)stock_segment
手持在庫数On-Hand QuantityonHandQtyZKDP.zkzasuon_hand_qty
引当済数量Committed QuantitycommittedQty— (派生: Σ Allocation.qty)— (派生)
有効在庫数量Available QuantityavailableQty— (派生: onHand − committed)— (派生)
引当Allocateallocate(qty, demandRef)
振戻Revertrevert(allocationId)
再引当Reallocatereallocate(oldId, newDemandRef, qty)
変更理由コードReason CodeReasonCode / reasonCodeZLGP.zlkuzkreason_code

在庫区分 (StockSegment) 列挙値

列挙値業務用語説明
OWNED_PRODUCTION自社製品在庫完成品・組付部品・単品を包括した自社製品在庫
PROTOTYPE試作品在庫試作品の在庫 (直接書込パスあり; modernize 対象)
CONSIGNED支給品在庫顧客所有の支給品在庫 (ConsignedParts 集約と連携)

需要種別 (DemandType) 列挙値

列挙値業務用語説明
SALES_ORDER受注通常受注 (SalesOrder 文脈) に紐付く需要
REPETITIVE_PLAN繰返生産計画繰返生産計画 (RepetitiveProduction 文脈) に紐付く需要
PRODUCTION_INSTRUCTION製作指示製作指示 (Production 文脈) に紐付く需要
PROTOTYPE_ORDER試作指示試作指示 (Prototype 文脈) に紐付く需要
MATOMEまとめ指示まとめ指示 (RepetitiveProduction.MatomeInstruction 文脈) に紐付く需要

1.11 繰返生産 (Repetitive Production)

新規集約 (Phase 1)bc-repetitive-production バウンデッドコンテキスト。号口・かんばん・内示・生産計画を管理する。

業務用語English (Domain)Type / VariableLegacy TableModern Table
号口受注Gokuchi OrderGokuchiOrder / gokuchiOrderJKMP + JUDPgokuchi_orders
号口受注番号Gokuchi Order NumbergokuchiOrderNoJKMP.JKRNBNgokuchi_order_no
かんばん品マスタKanban Item MasterKanbanItemMaster / kanbanItemMasterKBMPkanban_item_masters
作業指示書 (繰返)Work InstructionWorkInstruction / workInstructionGDMPwork_instructions
生産計画Production PlanProductionPlan / productionPlanGAJP / GSJPproduction_plans
まとめ指示Matome InstructionMatomeInstruction / matomeInstructionKMDPmatome_instructions
まとめ部品明細Matome LineMatomeLine / matomeLineKMDP 明細matome_lines
標準在庫マスタStandard StockStandardStock / standardStockHZMPstandard_stocks
内示明細Kanban Forecast LineKanbanForecastLine / kanbanForecastLineNJDPkanban_forecast_lines
確定明細Kanban Confirmed LineKanbanConfirmedLine / kanbanConfirmedLineJUDP (確定行)kanban_confirmed_lines
出来高報告書Output ReportOutputReport / outputReportGDMPoutput_reports
号口Gokuchi (Production Unit)gokuchiOrderNoJKMP
かんばんKanbankanbanKBMP
内示Kanban ForecastforecastQtyNJDP
まとめMatomematomeIdKMDP
箱入り数Box QuantityboxQtyKBMP.KBD101box_qty
計算基準Calculation BasisCalcBasis / calculationBasiscalculation_basis

1.12 支給品 (Consigned Parts)

新規集約 (Phase 1)bc-consigned バウンデッドコンテキスト。顧客所有の支給品の受入・管理を担う。在庫残高は Inventory.StockLedger (stockSegment=CONSIGNED) が SSOT。

業務用語English (Domain)Type / VariableLegacy TableModern Table
支給品Consigned PartsConsignedParts
支給品データSupplied Parts RecordSuppliedPartsRecord / suppliedPartsRecordSKDPsupplied_parts_records
支給品明細Supplied Part LineSuppliedPartLine / suppliedPartLineSKDP 明細supplied_part_lines
支給品マスタSupplied Parts MasterSuppliedPartsMaster / suppliedPartsMasterSMMPsupplied_parts_masters
試作番号Proto NumberprotoNoSKDP.SKNOSSproto_no
支給数量Supplied QuantitysuppliedQtySKDP.SKSURYsupplied_qty
受入確認フラグLine ConfirmedlineConfirmedSKDP.SKKUEDline_confirmed

1.13 工機作業指示 (Tooling)

新規集約 (Phase 1)bc-tooling バウンデッドコンテキスト。金型・治具の工機作業指示書発行・管理を担う。

業務用語English (Domain)Type / VariableLegacy TableModern Table
工機作業指示書Tooling Work OrderToolingWorkOrder / toolingWorkOrderNKMP + KFDPtooling_work_orders
工機作業明細Tooling LineToolingLine / toolingLineKFDP 明細tooling_lines
金型構成Mold CompositionMoldComposition / moldCompositionKFDP (号口金型構成)mold_compositions
型種マスタMold Type MasterMoldTypeMaster / moldTypeMasterTYMPmold_type_masters
工機Toolingtooling
作業指示書区分Work Order TypeWorkOrderType / workOrderTypeKFDP.kfkusjwork_order_type

作業指示書区分 (WorkOrderType) 列挙値

列挙値業務用語レガシー値
TOOLING工機'K'
PRODUCTION_MOLD号口金型'G'
DESIGN設計'S'

1.14 金型ライフサイクル (Mold Lifecycle)

新規集約 (Phase 1)bc-mold バウンデッドコンテキスト。金型マスタの登録・移動・廃棄・削除ライフサイクルを管理する。

業務用語English (Domain)Type / VariableLegacy TableModern Table
金型マスタレコードMold RecordMoldRecord / moldRecordMDMRmold_records
金型MoldmoldIdMDMR
保管場所Storage LocationstorageLocationMDMR.mdnotnstorage_location
保管期限開始日Storage Start DatestorageStartDateMDMR.mdnyststorage_start_date
保管期限終了日Storage End DatestorageEndDateMDMR.mdnyedstorage_end_date
使用回数Usage CountusageCountMDMR.mdusedusage_count
金型状態Mold Record StatusMoldRecordStatus / recordStatusMDMR (状態列)record_status
保管期限正本Storage Deadline MasterMjmpRecordmjmpmjmp_records

金型状態 (MoldRecordStatus) 列挙値

列挙値業務用語説明
ACTIVE管理中有効な金型
DISPOSED廃棄登録済廃棄チェックリストの対象
DELETED削除済論理削除 (commitClear によるトゥームストーン)

1.15 試作 (Prototype)

新規集約 (Phase 1)bc-prototype バウンデッドコンテキスト。試作作業指示の計算・発行・完成ライフサイクルを管理する。試作品在庫は Inventory.StockLedger (stockSegment=PROTOTYPE) が SSOT。

業務用語English (Domain)Type / VariableLegacy TableModern Table
試作PrototypePrototype
試作作業指示Proto Work OrderProtoWorkOrder / protoWorkOrderSJDP + BJDPproto_work_orders
試作No・伝票No紐付けProto Slip RecordProtoSlipRecord / protoSlipRecordN1DP + N2DPproto_slip_records
試作部品製作依頼書Proto Parts RequestProtoPartsRequest / protoPartsRequestJUDP + JUDPR1proto_parts_requests
試作番号Prototype NumberprotoNoSJDP.SJNOSS / JUDP.JUNOSSproto_no
計画数量 (試作)Planned QuantityplannedQtySJDP.SJKUSUplanned_qty
完成数量 (試作)Completed QuantitycompletedQtySJDP.SJKBSUcompleted_qty
依頼区分Request TyperequestTypeSJDP.SJKUIRrequest_type
計算チェーンCalculation ChainCalculationChainTSBS01C (6ステップ)

試作作業指示状態 (WorkOrderStatus) 列挙値

列挙値業務用語説明
PENDING (0)未算出JUDP 登録後・計算前
CALCULATED (1)算出済TSBS01C 計算チェーン完了後
ISSUED (2)発行済試作作業指示書発行後
COMPLETED (8)完成完成入力後 (JUKUED=8 相当)
FORCE_CANCELLED (9)強制中止強制中止後 (DUAL-gate)

1.16 自動倉庫 (Warehouse)

新規集約 (Phase 1)bc-warehouse バウンデッドコンテキスト。自動倉庫の棚番・金型格納状態を管理する。在庫残高の SSOT は Inventory 集約であり、Warehouse は物理倉庫機構の SSOT を持つ。

業務用語English (Domain)Type / VariableLegacy TableModern Table
自動倉庫Auto WarehouseAutoWarehouse
棚番Shelf LocationShelfLocation / shelfLocationTBMPshelf_locations
棚格納状態Mold PlacementMoldPlacement / moldPlacementMDMP (格納フィールド群)
棚種コードShelf Type CodeshelfTypeCodeTBMP.tbkdtnshelf_type_code
使用区画数Used SectionsusedSectionsTBMP.tbusedused_sections
最大区画数Max SectionsmaxSectionsTBMP.tbkdtn % 10 (派生)— (派生)
積載箱数Loaded BoxesloadedBoxesTBMP.tbusbxloaded_boxes
積載可能箱数Capacity BoxescapacityBoxesTBMP.tbpsbxcapacity_boxes
最終入庫日Last Receipt DatelastReceiptDateTBMP.tbdynklast_receipt_date

自動倉庫登録操作コード (WSCDDT)

コード業務用語操作
'N'新規格納 (ADD)金型を棚に新規格納
'M'棚移動 (MOV)格納棚を変更
'D'削除 (DEL)棚から金型を取り出し登録解除
' '情報更新 (CHG)棚番変更なしで日付・高さ・区画数を更新

1.17 EDI取込 (EDI Integration)

新規集約 (Phase 1)bc-edi バウンデッドコンテキスト。デンソー機工 EDI フォーマット (128-byte 固定長) を PMS ユビキタス言語に翻訳するアンチコラプションレイヤー (ACL)。

業務用語English (Domain)Type / VariableLegacy TableModern Table
EDI取込EDI IntegrationEdiIntegration
EDI取込バッチEDI Import BatchEdiImportBatch / ediImportBatchJUDPDK + DCMPedi_import_batches
デンソーEDIレコードDenso EDI RecordDensoEdiRecord / densoEdiRecordJUDPDKdenso_edi_records
変換済みステージングConverted StagingconvertedRefjudpp3judpp3
取込進捗状態Import StatusImportStatus / importStatusDCMPimport_status
変更区分コードChange Type Codep3d102judpp3.P3D102change_type_code
品番変換マスタCVMP Conversion MasterCvmpMaster / cvmpMasterCVMPcvmp_masters
番哨値Sentinel Value (MATUBI)matubi— (計算値: YYYYMM31)

取込進捗状態 (ImportStatus) 列挙値

列挙値業務用語説明
UPLOADED取込済フィード受信・JUDPDK INSERT 完了
CONVERTED変換済CVMP 変換・judpp3 生成完了
APPLIED適用済JUDP 書込・JKMP 採番完了
FAILED失敗任意段階からの失敗遷移

1.18 材料マスタ (Material Master)

新規集約 (Phase 1)bc-material バウンデッドコンテキスト。材質マスタ・使用材料マスタの管理と照会を担う。在庫残高は Inventory 集約が SSOT。

業務用語English (Domain)Type / VariableLegacy TableModern Table
材質マスタMaterial GradeMaterialGrade / materialGradeZSMPmaterial_grades
使用材料マスタUsed MaterialUsedMaterial / usedMaterialSZMPused_materials
使用材料明細Used Material LineUsedMaterialLine / usedMaterialLineSZMP 明細used_material_lines
材質コードGrade CodegradeCodeZSMP.ZSZISIgrade_code
材質名Grade NamegradeNameZSMP.ZSNMZSgrade_name
板厚ThicknessthicknessSZMP.SZITATthickness
材料区分Material CategorycategoryCode / categoryNameNM42NM (区分マスタ)material_category

2. コアドメイン: 営業CRM (Sales)

Sales CRM の用語定義は docs/ddd/sales/01-ubiquitous-language.md を参照。 本セクションでは PMS が連携時に参照する Sales CRM 用語のみを記載する。

業務用語English (Domain)Type / Variable説明
取引先AccountAccount顧客マスタの Sales CRM 側オーナー
案件DealDealパイプライン管理の基本単位
案件成約Deal Wondeal.wonPMS への受注依頼 (CreateOrderRequest) のトリガー

3. マスタデータ (Master Data — 両システム共通)

業務用語English (Domain)Type / VariableLegacy TableModern Table
社員EmployeeEmployee / employeeM_SHAINemployees
得意先CustomerCustomer / customerM_TOKUISAKIcustomers
仕入先SupplierSupplier / supplierM_SIIRESAKI (+ M_TEHAISAKI*)suppliers
区分ClassificationClassification / classificationM_KUBUNclassifications
区分名称Classification LabelClassificationLabel / classificationLabelM_KUBUN_NAMEclassification_labels
採番管理Number SequenceNumberSequence / numberSequenceM_NO_KANRInumber_sequences
品番ProductProduct / productM_HINBANproducts
部品表 (ヘッダ)BOM HeaderBOMHeader / bomHeaderM_PARTS_HEDbom_headers
部品表 (明細)BOM LineBOMLine / bomLineM_PARTS_BDYbom_lines
部品表 (設変)BOM RevisionBOMRevision / bomRevisionM_PARTS_CHGbom_revisions
単価Unit PriceunitPriceM_TANKAprice_lists
部署DepartmentDepartment / departmentM_BUSHOdepartments
権限PermissionPermission / permissionM_KENGENpermissions
権限グループPermission GroupPermissionGroup / permissionGroupM_KENGEN_IDXpermission_groups
納入先Delivery DestinationDeliveryDestination / deliveryDestinationM_NOUNYUSAKIdelivery_destinations
工程ProcessProcess / processM_KOUTEIprocesses
作業種別Work TypeWorkType / workTypeM_SAGYOwork_types
仕入単価Supplier PriceSupplierPrice / supplierPriceM_SHIIRETANKAsupplier_prices

マスタ共通フィールド

業務用語English (Domain)Type / VariableLegacy ColumnModern Column
得意先コードCustomer CodecustomerCodeTOKUISAKI_CODEcustomer_code
得意先名Customer NamecustomerNameTOKUISAKI_NAMEcustomer_name
仕入先コードSupplier CodesupplierCodeSIIRESAKI_CODEsupplier_code
仕入先名Supplier NamesupplierNameSIIRESAKI_NAMEsupplier_name
社員コードEmployee CodeemployeeCodeSHAIN_CODEemployee_code
権限コードPermission CodepermissionCodeKENGEN_CODEpermission_code
品番Product NumberproductNumberHINBANproduct_number
品名Product NameproductNameHINMEIproduct_name
型式Model NumbermodelNumberKATASIKImodel_number
材質MaterialmaterialZAISHITUmaterial
寸法DimensionsdimensionsSUNPOdimensions
重量WeightweightJYURYOweight
単価Unit PriceunitPriceTANKAunit_price
発注単価Purchase PricepurchasePriceHTANKApurchase_price
売価Selling PricesellingPriceUTANKAselling_price
見積単価Quote PricequotePriceMTANKAquote_price

マスタデータ注記

* M_TEHAISAKI → Supplier 統合: レガシーでは M_SIIRESAKI (財務系) と M_TEHAISAKI (手配系) の 2つの仕入先マスタが存在したが、これはレガシー設計の負債である。新システムでは単一の Supplier エンティティに統合し、手配系属性 (工程コード, 分類, 印刷レイアウト) と財務系属性 (支払方法, 支払残高) をロールベースフィールドとして保持する。詳細: docs/ddd/pms/instances/tamari/migration-notes.md

CQRS 読取モデル: AR Balance (T_URIKAKE), Invoice Balance (T_SKZAN), AP Balance (T_KAIKAKE) は 月次締め処理で全削除→再作成されるエフェメラルなスナップショットテーブル。新システムでは CQRS の 読取モデルとして実装し、トランザクションテーブルとは区別する。

区分マスタの主要区分種別 (Classification Categories)

区分マスタ (M_KUBUN / classifications) はドロップダウン値・ステータスコード・業務設定を テナント単位で管理する汎用マスタ。以下は製造業で共通的に必要となる区分種別の一覧。

区分種別EnglishType用途
単位区分Unit of MeasureUnitOfMeasure数量の単位 (個/式/台/Kg/m 等)
端数処理区分Rounding PolicyRoundingPolicy税額・単価の丸め方法
請求計算区分Billing CalculationBillingCalculationMethod明細単位 or 合算
単価区分Price TypePriceType売価/発注単価/見積単価
社内外区分Internal/ExternalInternalExternal社内作業 or 外注
入金方法Receipt Payment MethodPaymentMethod現金/振込/手形/相殺 等
支払方法Supplier Payment MethodPaymentMethod現金/振込/手形/相殺 等
費目区分Expense CategoryExpenseCategory仕入の費目分類
見積費目区分Quotation Cost ItemQuotationCostItem見積明細の費目 (20分類程度)
社内工程区分Internal Process CategoryInternalProcessCategory労務費の工程分類
手配品区分Procurement Item TypeProcurementItemType材料/部品/購入品/外注
仕入先区分Supplier ClassificationSupplierClassification購入先/外注/納入先 等
注文書出力方法PO Output MethodPOOutputMethod紙/FAX/メール/出力なし
締日区分Closing DayClosingDayType月次締め日
支払月区分Payment TimingPaymentTiming当月/翌月/翌々月
権限レベルPermission LevelPermissionLevel使用不可/参照のみ/更新可
見積ステータスQuotation StatusQuotationStatus作成中→申請中→承認/否認
手配ステータスProcurement StatusProcurementStatus作成中→申請→確定→承認→発注→受入→検収
工事ステータスOrder StatusOrderStatus工事中→完了(未売上)→完了(売上済)
製作指示ステータスProduction StatusProductionStatus着手→完了

4. 連携コントラクト (Integration Contracts)

業務用語English (Domain)Type / Variable方向説明
受注依頼Create Order RequestCreateOrderRequestSales → PMS案件から受注への変換リクエスト
見積依頼・回答Quote Request / ResponseQuoteRequest / QuoteResponseSales ↔ PMSBOM原価計算の依頼と回答
ドメインイベントDomain EventDomainEventPMS → Sales製造進捗イベント (10種)
進捗コールバックOrder Status CallbackOrderStatusCallbackPMS → Sales集約ステータス通知
顧客同期Customer Sync PayloadCustomerSyncPayloadSales → PMS顧客マスタの同期
製品マスタProduct Catalog EntryProductCatalogEntryPMS → Sales製品カタログの同期

ドメインイベント種別

イベント名EnglishTypeトリガー
受注受付Order Acceptedorder.acceptedPMS が受注を登録
作業指示作成Work Order Createdwork_order.created製作指示を発行
作業着手Work Startedwork_order.started作業員が着手
作業完了Work Completedwork_order.completed作業が完了
外注発注PO Issuedpurchase_order.issued仕入先に発注
入荷Goods Receivedgoods.received受入処理完了
検収完了Inspection Passedinspection.passed顧客検収合格
出荷Shippedorder.shipped納品発送
請求発行Invoice Issuedinvoice.issued請求書発行
入金確認Payment Receivedpayment.received入金消込完了

5. 共通フィールド (Audit & Metadata)

業務用語English (Domain)Type / VariableLegacy ColumnModern Column
登録日時Created AtcreatedAtINPUTDATEcreated_at
更新日時Updated AtupdatedAtLASTDATEupdated_at
登録者Created BycreatedByINPUTUSERcreated_by
更新者Updated ByupdatedByLASTUSERupdated_by
削除フラグIs DeletedisDeletedDEL_FLGis_deleted
備考RemarksremarksBIKOremarks

6. 承認ワークフロー (Approval Workflow)

業務用語English (Domain)Type / VariableLegacy ColumnModern Column
作成者AuthorauthorCodeSAKUSEI_CODEauthor_code
作成日Authored DateauthoredDateSAKUSEI_DATEauthored_date
承認者ApproverapproverCodeSHOUNIN_CODEapprover_code
承認日Approved DateapprovedDateSHOUNIN_DATEapproved_date
確定者ConfirmerconfirmerCodeKAKUTEI_CODEconfirmer_code
確認担当者VerifierverifierCodeKAKUNIN_CODEverifier_code
検収者InspectorinspectorCodeKENSHU_CODEinspector_code

7. 帳票 (Print / Reports)

業務用語English (Domain)Type / VariableLegacy TableModern Table
見積書Quotation ReportRptQuotationP_MITUMORIrpt_quotations
見積依頼書Quote Request ReportRptQuoteRequestP_MITU_IRAIrpt_quote_requests
購入品申請書Purchase Request ReportRptPurchaseRequestP_SINSEIrpt_purchase_requests
注文書Purchase Order ReportRptPurchaseOrderP_CHUMONrpt_purchase_orders
製作指示書Production Order ReportRptProductionOrderP_SSIJIrpt_production_orders
納品書Delivery Note ReportRptDeliveryNoteP_NOUHINrpt_delivery_notes
納品案内書Delivery Notice ReportRptDeliveryNoticeP_NOUANNrpt_delivery_notices
請求書Invoice ReportRptInvoiceP_SEIKYUrpt_invoices

命名規則 / Naming Conventions

テーブル名

  • Legacy: プレフィックス T_ (トランザクション), M_ (マスタ), P_ (帳票)
  • Modern: snake_case 複数形 (e.g., purchase_orders, employees)

カラム名

  • Legacy: UPPER_SNAKE_CASE (e.g., TOKUISAKI_CODE)
  • Modern: lower_snake_case (e.g., customer_code)

TypeScript 型名

  • エンティティ: PascalCase 単数形 (e.g., SalesOrder, PurchaseOrder)
  • 変数: camelCase 単数形 (e.g., salesOrder, purchaseOrder)
  • コレクション: camelCase 複数形 (e.g., salesOrders, purchaseOrders)

禁止事項

  • ローマ字をそのまま変数名にしない (mitumori NG → quotation OK)
  • 略語を型名に使わない (Mitu NG → Quotation OK)
  • レガシー名をそのまま新コードに持ち込まない (T_ORDER NG → SalesOrder OK)