@mojaloop/central-ledger 19.14.0 → 20.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.grype.yaml +3 -0
- package/.license-scanner.json +16 -0
- package/.ncurc.yaml +19 -13
- package/.nvmrc +1 -1
- package/.nycrc.yml +14 -2
- package/CHANGELOG.md +51 -0
- package/Dockerfile +13 -10
- package/README.md +39 -89
- package/audit-ci.jsonc +1 -1
- package/config/default.json +60 -3
- package/config/deprecated.default-settlement.json +160 -0
- package/docker/ml-api-adapter/default.json +28 -0
- package/docker-compose.yml +6 -0
- package/nodemon.json +6 -0
- package/package.json +128 -64
- package/{sbom-v19.13.2.csv → sbom-v20.0.0.csv} +886 -736
- package/scripts/_wait4_all.js +5 -5
- package/scripts/transferSettlementTemp/interchangeFeeCalculation.js +51 -0
- package/src/api/index.ts +30 -0
- package/src/api/interface/swagger.json +2249 -2054
- package/src/api/participants/routes.js +1 -1
- package/src/api/root/handler.int.ts +55 -0
- package/src/api/routes.js +7 -6
- package/src/api/server.ts +27 -0
- package/src/api/server.unit.ts +16 -0
- package/src/api/settlementModels/routes.js +4 -4
- package/src/domain/participant/index.d.ts +47 -0
- package/src/domain/participant/index.int.ts +724 -0
- package/src/domain/participant/index.js +4 -5
- package/src/domain/position/fx-prepare.js +1 -1
- package/src/domain/position/fx-timeout-reserved.js +6 -0
- package/src/domain/position/prepare.js +1 -1
- package/src/handlers/admin/handler.js +1 -1
- package/src/handlers/index.js +30 -0
- package/src/handlers/positions/handler.js +0 -2
- package/src/handlers/positions/handlerBatch.js +5 -5
- package/src/handlers/register.js +44 -29
- package/src/handlers/timeouts/handler.js +1 -4
- package/src/handlers/transfers/fx-abort.int.ts +209 -0
- package/src/handlers/transfers/fx-handlers.int.ts +275 -0
- package/src/handlers/transfers/fx-timeout.int.ts +284 -0
- package/src/handlers/transfers/handler.js +1 -3
- package/src/handlers/transfers/handlers.int.ts +538 -0
- package/src/handlers/transfers/prepare.int.ts +1283 -0
- package/src/handlers/transfers/prepare.js +2 -2
- package/src/knexfile.js +19 -0
- package/src/lib/cache.js +1 -1
- package/src/lib/config/index.ts +60 -0
- package/src/lib/config/resolver.ts +231 -0
- package/src/lib/config/resolver.unit.ts +72 -0
- package/src/lib/config/types.ts +372 -0
- package/src/lib/config/util.ts +523 -0
- package/src/lib/config/util.unit.ts +825 -0
- package/src/lib/migrator.js +3 -3
- package/src/lib/proxyCache.js +3 -3
- package/{migrations → src/migrations}/100100_event.js +1 -1
- package/{migrations → src/migrations}/110100_contactType.js +1 -1
- package/{migrations → src/migrations}/110200_currency.js +1 -1
- package/{migrations → src/migrations}/110201_currency-scale.js +1 -1
- package/{migrations → src/migrations}/110300_endpointType.js +1 -1
- package/{migrations → src/migrations}/110400_ledgerEntryType.js +1 -1
- package/{migrations → src/migrations}/110450_ledgerAccountType.js +1 -1
- package/{migrations → src/migrations}/110500_participantLimitType.js +1 -1
- package/{migrations → src/migrations}/110600_transferParticipantRoleType.js +1 -1
- package/{migrations → src/migrations}/110700_transferState.js +1 -1
- package/{migrations → src/migrations}/110900_settlementState.js +1 -1
- package/{migrations → src/migrations}/112000_bulkTransferState.js +1 -1
- package/{migrations → src/migrations}/112100_bulkProcessingState.js +1 -1
- package/{migrations → src/migrations}/200100_participant.js +1 -1
- package/{migrations → src/migrations}/200200_participantContact.js +1 -1
- package/{migrations → src/migrations}/200300_participantEndpoint.js +1 -1
- package/{migrations → src/migrations}/200400_participantParty.js +1 -1
- package/{migrations → src/migrations}/200600_token.js +1 -1
- package/{migrations → src/migrations}/200601_token-indexes.js +1 -1
- package/{migrations → src/migrations}/300100_transferDuplicateCheck.js +2 -2
- package/{migrations → src/migrations}/300150_bulkTransferDuplicateCheck.js +2 -2
- package/{migrations → src/migrations}/300200_transfer.js +2 -2
- package/{migrations → src/migrations}/300202_transfer-decimal184.js +1 -1
- package/{migrations → src/migrations}/300250_bulkTransfer.js +2 -3
- package/{migrations → src/migrations}/300275_bulkTransferAssociation.js +2 -3
- package/{migrations → src/migrations}/300300_ilpPacket.js +1 -1
- package/{migrations → src/migrations}/300400_transferStateChange.js +1 -1
- package/{migrations → src/migrations}/300450_bulkTransferStateChange.js +1 -1
- package/{migrations → src/migrations}/300500_segment.js +1 -1
- package/{migrations → src/migrations}/310100_participantCurrency.js +1 -1
- package/{migrations → src/migrations}/310200_transferParticipant.js +1 -1
- package/{migrations → src/migrations}/310202_transferParticipant-decimal184.js +1 -1
- package/{migrations → src/migrations}/310204_transferParticipant-participantId.js +2 -2
- package/{migrations → src/migrations}/310300_participantPosition.js +1 -1
- package/{migrations → src/migrations}/310302_participantPosition-decimal184.js +1 -1
- package/{migrations → src/migrations}/310400_participantPositionChange.js +1 -1
- package/{migrations → src/migrations}/310402_participantPositionChange-decimal184.js +1 -1
- package/{migrations → src/migrations}/310403_participantPositionChange-participantCurrencyId.js +2 -2
- package/{migrations → src/migrations}/310404_participantPositionChange-change.js +2 -2
- package/{migrations → src/migrations}/310500_participantLimit.js +1 -1
- package/{migrations → src/migrations}/310502_participantLimit-decimal184.js +1 -1
- package/{migrations → src/migrations}/400100_settlementWindow.js +1 -1
- package/{migrations → src/migrations}/400200_settlement.js +1 -1
- package/{migrations → src/migrations}/400300_settlementSettlementWindow.js +1 -1
- package/{migrations → src/migrations}/400301_settlementSettlementWindow-indexes.js +0 -1
- package/{migrations → src/migrations}/400400_settlementWindowStateChange.js +1 -1
- package/{migrations → src/migrations}/400500_settlementTransferParticipant.js +1 -1
- package/{migrations → src/migrations}/400502_settlementTransferParticipant-decimal184.js +1 -1
- package/{migrations → src/migrations}/400600_settlementParticipantCurrency.js +1 -1
- package/{migrations → src/migrations}/400602_settlementParticipantCurrency-decimal184.js +1 -1
- package/{migrations → src/migrations}/400700_settlementParticipantCurrencyStateChange.js +1 -1
- package/{migrations → src/migrations}/400800_settlementStateChange.js +1 -1
- package/{migrations → src/migrations}/400900_settlementWindowContent.js +1 -1
- package/{migrations → src/migrations}/401000_settlementWindowContentStateChange.js +1 -1
- package/{migrations → src/migrations}/401001_settlementWindowContentStateChange-indexes.js +6 -6
- package/{migrations → src/migrations}/401200_settlementContentAggregation.js +1 -1
- package/{migrations → src/migrations}/401300_settlementModel.js +1 -1
- package/{migrations → src/migrations}/410100_transferFulfilmentDuplicateCheck.js +1 -1
- package/{migrations → src/migrations}/410102_transferFulfilmentDuplicateCheck-dropForeignTransferId.js +1 -1
- package/{migrations → src/migrations}/410103_transferFulfilmentDuplicateCheck-hashNullable.js +1 -1
- package/{migrations → src/migrations}/410200_transferFulfilment.js +1 -1
- package/{migrations → src/migrations}/410202_transferFulfilment-ilpFulfilment.js +1 -1
- package/{migrations → src/migrations}/410203_transferFulfilment-foreignTransferFulfilmentId.js +1 -1
- package/{migrations → src/migrations}/410240_bulkTransferFulfilmentDuplicateCheck.js +1 -1
- package/{migrations → src/migrations}/410250_bulkTransferFulfilment.js +1 -1
- package/{migrations → src/migrations}/410300_transferExtension.js +1 -1
- package/{migrations → src/migrations}/410302_transferExtension-transferErrorId.js +1 -1
- package/{migrations → src/migrations}/410350_bulkTransferExtension.js +1 -1
- package/{migrations → src/migrations}/410400_transferTimeout.js +1 -1
- package/{migrations → src/migrations}/410450_transferErrorDuplicateCheck.js +1 -1
- package/{migrations → src/migrations}/410500_transferError.js +1 -1
- package/{migrations → src/migrations}/410502_transferError-foreignTransferErrorDuplicateCheckId.js +1 -1
- package/{migrations → src/migrations}/410550_bulkTransferError.js +1 -1
- package/{migrations → src/migrations}/410600_expiringTransfer.js +1 -1
- package/{migrations → src/migrations}/500401_quote-hotfix-2719.js +8 -8
- package/{migrations → src/migrations}/500501_feature-fixSubIdRef.js +12 -12
- package/{migrations → src/migrations}/500601_party-2480.js +3 -3
- package/{migrations → src/migrations}/501001_quoteExtension-quote-service-174.js +1 -2
- package/{migrations → src/migrations}/501002_quoteExtension-2522.js +3 -3
- package/{migrations → src/migrations}/600010_fxTransferType.js +1 -1
- package/{migrations → src/migrations}/600012_fxParticipantCurrencyType.js +1 -1
- package/{migrations → src/migrations}/600100_fxTransferDuplicateCheck.js +2 -2
- package/{migrations → src/migrations}/600110_fxTransferErrorDuplicateCheck.js.js +1 -1
- package/{migrations → src/migrations}/600200_fxTransfer.js +2 -2
- package/{migrations → src/migrations}/600400_fxTransferStateChange.js +1 -1
- package/{migrations → src/migrations}/600501_fxWatchList.js +2 -2
- package/{migrations → src/migrations}/600600_fxTransferFulfilmentDuplicateCheck.js +1 -1
- package/{migrations → src/migrations}/600700_fxTransferFulfilment.js +1 -1
- package/{migrations → src/migrations}/600800_fxTransferExtension.js +1 -1
- package/{migrations → src/migrations}/601400_fxTransferTimeout.js +1 -1
- package/{migrations → src/migrations}/601500_fxTransferError.js +1 -1
- package/{migrations → src/migrations}/610200_fxTransferParticipant.js +1 -1
- package/{migrations → src/migrations}/610202_fxTransferParticipant-participantId.js +2 -2
- package/{migrations → src/migrations}/610403_participantPositionChange-fxTransfer.js +1 -1
- package/{migrations → src/migrations}/800100_quotePartyView.js +1 -1
- package/{migrations → src/migrations}/800101_feature-fixSubIdRef.js +1 -1
- package/{migrations → src/migrations}/800200_quoteView.js +1 -1
- package/{migrations → src/migrations}/800300_quoteResponseView.js +1 -1
- package/{migrations → src/migrations}/900100_foreign-keys.js +18 -18
- package/{migrations → src/migrations}/900101_foreign-keys.js +6 -6
- package/{migrations → src/migrations}/910100_feature904DDL.js +7 -7
- package/{migrations → src/migrations}/910101_feature904DataMigration.js +1 -1
- package/{migrations → src/migrations}/910102_feature949DataMigration.js +1 -1
- package/{migrations → src/migrations}/910103_feature1093SettlementByCurrency.js +3 -3
- package/{migrations → src/migrations}/940101_quotePartyIdInfoExtension-2522.js +25 -25
- package/{migrations → src/migrations}/950101_transferParticipantStateChange.js +2 -2
- package/{migrations → src/migrations}/950102_settlementModel-adjustPosition.js +2 -2
- package/{migrations → src/migrations}/950103_dropTransferParticipantStateChange.js +3 -3
- package/{migrations → src/migrations}/950104_settlementModel-settlementAccountTypeId.js +3 -3
- package/src/migrations/950107_settlementWindowContent_foreign_settlementModel.js +63 -0
- package/{migrations → src/migrations}/950108_participantProxy.js +1 -2
- package/{migrations → src/migrations}/950120_fxQuoteConversionTerms_sourceAmount_nullable.js +1 -1
- package/{migrations → src/migrations}/960100_create_externalParticipant.js +2 -2
- package/{migrations → src/migrations}/960110_alter_transferParticipant__addFiled_externalParticipantId.js +2 -2
- package/{migrations → src/migrations}/961001_transferForwarded.js +1 -1
- package/{migrations → src/migrations}/961002_fxTransferForwarded.js +1 -1
- package/src/models/participant/externalParticipant.int.ts +85 -0
- package/src/models/participant/facade.js +4 -2
- package/src/models/participant/participantCurrencyCached.js +1 -1
- package/src/models/position/facade.js +8 -2
- package/src/models/transfer/facade.int.ts +139 -0
- package/src/models/transfer/facade.js +8 -3
- package/src/models/transfer/transferDuplicateCheck.js +2 -2
- package/src/models/transfer/transferError.int.ts +112 -0
- package/src/models/transfer/transferExtension.int.ts +137 -0
- package/src/models/transfer/transferStateChange.int.ts +117 -0
- package/{seeds → src/seeds}/participant.js +1 -1
- package/{seeds → src/seeds}/settlementInterchange.js +1 -0
- package/src/settlement/api/handlerRoutes.js +71 -0
- package/src/settlement/api/handlers/health.js +10 -0
- package/src/settlement/api/handlers/index.js +57 -0
- package/src/settlement/api/handlers/settlementWindows/{id}.js +103 -0
- package/src/settlement/api/handlers/settlementWindows.js +77 -0
- package/src/settlement/api/handlers/settlements/{id}.js +133 -0
- package/src/settlement/api/handlers/settlements/{sid}/participants/{pid}/accounts/{aid}.js +127 -0
- package/src/settlement/api/handlers/settlements/{sid}/participants/{pid}.js +127 -0
- package/src/settlement/api/handlers/settlements.js +114 -0
- package/src/settlement/api/openapiRouting.js +87 -0
- package/src/settlement/api/routes.js +176 -0
- package/src/settlement/domain/rules/index.js +46 -0
- package/src/settlement/domain/settlement/index.js +405 -0
- package/src/settlement/domain/settlementWindow/index.js +117 -0
- package/src/settlement/domain/transactions/index.js +83 -0
- package/src/settlement/domain/transferSettlement/index.js +57 -0
- package/src/settlement/handlers/deferredSettlement/handler.js +180 -0
- package/src/settlement/handlers/grossSettlement/handler.js +180 -0
- package/src/settlement/handlers/index.js +101 -0
- package/src/settlement/handlers/register.js +92 -0
- package/src/settlement/handlers/rules/handler.js +164 -0
- package/src/settlement/interface/swagger-handler.json +34 -0
- package/src/settlement/interface/swagger.json +1560 -0
- package/src/settlement/lib/db.js +32 -0
- package/src/settlement/lib/kafka/index.js +41 -0
- package/src/settlement/lib/kafka/producer.js +142 -0
- package/src/settlement/lib/scriptEngine.js +99 -0
- package/src/settlement/lib/scriptsLoader.js +175 -0
- package/src/settlement/lib/utility.js +243 -0
- package/src/settlement/models/ilpPackets/ilpPacket.js +42 -0
- package/src/settlement/models/lib/enums.js +192 -0
- package/src/settlement/models/misc/migrationLock.js +53 -0
- package/src/settlement/models/settlement/facade.js +1652 -0
- package/src/settlement/models/settlement/index.js +55 -0
- package/src/settlement/models/settlement/participantCurrency.js +48 -0
- package/src/settlement/models/settlement/settlement.js +49 -0
- package/src/settlement/models/settlement/settlementModel.js +44 -0
- package/src/settlement/models/settlement/settlementParticipantCurrency.js +61 -0
- package/src/settlement/models/settlement/settlementStateChange.js +44 -0
- package/src/settlement/models/settlement/settlementTransferParticipant.js +46 -0
- package/src/settlement/models/settlementWindow/facade.js +345 -0
- package/src/settlement/models/settlementWindow/index.js +47 -0
- package/src/settlement/models/settlementWindow/settlementWindowStateChange.js +55 -0
- package/src/settlement/models/settlementWindowContent/facade.js +79 -0
- package/src/settlement/models/settlementWindowContent/index.js +40 -0
- package/src/settlement/models/settlementWindowContent/settlementWindowContentStateChange.js +53 -0
- package/src/settlement/models/transferSettlement/facade.js +363 -0
- package/src/settlement/models/transferSettlement/index.js +42 -0
- package/src/settlement/shared/logger/index.js +7 -0
- package/src/settlement/shared/plugins.js +88 -0
- package/src/settlement/shared/setup.js +224 -0
- package/src/settlement/utils/truthyProperty.js +37 -0
- package/src/shared/legacyUtilShim.js +20 -0
- package/src/shared/plugins.js +3 -3
- package/src/shared/results.ts +22 -0
- package/src/shared/results.unit.ts +38 -0
- package/src/shared/setup.js +14 -1
- package/src/testing/api-helpers.ts +1222 -0
- package/src/testing/exec-async.ts +67 -0
- package/src/testing/harness.snapshot.sql +3895 -0
- package/src/testing/harness.test.ts +15 -0
- package/src/testing/harness.ts +1160 -0
- package/src/testing/kafka.ts +221 -0
- package/src/testing/prng.ts +82 -0
- package/src/testing/rdkafka.test.ts +263 -0
- package/src/testing/run.ts +559 -0
- package/src/testing/snapshot.test.ts +92 -0
- package/src/testing/snapshot.ts +549 -0
- package/src/testing/tap-stream.ts +164 -0
- package/src/testing/types.ts +95 -0
- package/src/testing/util.ts +333 -0
- package/src/types/central-services-error-handling.d.ts +72 -0
- package/src/types/central-services-stream.d.ts +148 -0
- package/test-integration.Dockerfile +0 -2
- package/test.Dockerfile +0 -2
- package/tsconfig.json +40 -0
- package/config/knexfile.js +0 -19
- package/migrations/950107_settlementWindowContent_foreign_settlementModel.js +0 -63
- package/src/api/index.js +0 -16
- package/src/lib/config.js +0 -81
- /package/{migrations → src/migrations}/110101_contactType-indexes.js +0 -0
- /package/{migrations → src/migrations}/110301_endpointType-indexes.js +0 -0
- /package/{migrations → src/migrations}/110401_ledgerEntryType-indexes.js +0 -0
- /package/{migrations → src/migrations}/110451_ledgerAccountType-indexes.js +0 -0
- /package/{migrations → src/migrations}/110501_participantLimitType-indexes.js +0 -0
- /package/{migrations → src/migrations}/110601_transferParticipantRoleType-indexes.js +0 -0
- /package/{migrations → src/migrations}/110800_settlementWindowState.js +0 -0
- /package/{migrations → src/migrations}/111000_amountType.js +0 -0
- /package/{migrations → src/migrations}/111001_amountType-indexes.js +0 -0
- /package/{migrations → src/migrations}/111100_balanceOfPayments.js +0 -0
- /package/{migrations → src/migrations}/111101_balanceOfPayments-indexes.js +0 -0
- /package/{migrations → src/migrations}/111200_partyIdentifierType.js +0 -0
- /package/{migrations → src/migrations}/111201_partyIdentifierType-indexes.js +0 -0
- /package/{migrations → src/migrations}/111300_partyType.js +0 -0
- /package/{migrations → src/migrations}/111301_partyType-indexes.js +0 -0
- /package/{migrations → src/migrations}/111400_quoteDuplicateCheck.js +0 -0
- /package/{migrations → src/migrations}/111500_transactionInitiator.js +0 -0
- /package/{migrations → src/migrations}/111501_transactionInitiator-indexes.js +0 -0
- /package/{migrations → src/migrations}/111600_transactionInitiatorType.js +0 -0
- /package/{migrations → src/migrations}/111601_transactionInitiatorType-indexes.js +0 -0
- /package/{migrations → src/migrations}/111700_settlementDelay.js +0 -0
- /package/{migrations → src/migrations}/111701_settlementDelay-indexes.js +0 -0
- /package/{migrations → src/migrations}/111800_settlementInterchange.js +0 -0
- /package/{migrations → src/migrations}/111801_settlementInterchange-indexes.js +0 -0
- /package/{migrations → src/migrations}/111900_settlementGranularity.js +0 -0
- /package/{migrations → src/migrations}/111901_settlementGranularity-indexes.js +0 -0
- /package/{migrations → src/migrations}/112101_bulkProcessingState-indexes.js +0 -0
- /package/{migrations → src/migrations}/200101_participant-indexes.js +0 -0
- /package/{migrations → src/migrations}/200201_participantContact-indexes.js +0 -0
- /package/{migrations → src/migrations}/200301_participantEndpoint-indexes.js +0 -0
- /package/{migrations → src/migrations}/200401_participantParty-indexes.js +0 -0
- /package/{migrations → src/migrations}/300201_transfer-indexes.js +0 -0
- /package/{migrations → src/migrations}/300251_bulkTransfer-indexes.js +0 -0
- /package/{migrations → src/migrations}/300276_bulkTransferAssociation-indexes.js +0 -0
- /package/{migrations → src/migrations}/300401_transferStateChange-indexes.js +0 -0
- /package/{migrations → src/migrations}/300451_bulkTransferStateChange-indexes.js +0 -0
- /package/{migrations → src/migrations}/300501_segment-indexes.js +0 -0
- /package/{migrations → src/migrations}/310101_participantCurrency-indexes.js +0 -0
- /package/{migrations → src/migrations}/310201_transferParticipant-indexes.js +0 -0
- /package/{migrations → src/migrations}/310203_transferParticipant-indexes.js +0 -0
- /package/{migrations → src/migrations}/310301_participantPosition-indexes.js +0 -0
- /package/{migrations → src/migrations}/310401_participantPositionChange-indexes.js +0 -0
- /package/{migrations → src/migrations}/310405_participantPositionChange-positionChange.js +0 -0
- /package/{migrations → src/migrations}/310406_participantPositionChange-positionChange-revert.js +0 -0
- /package/{migrations → src/migrations}/310501_participantLimit-indexes.js +0 -0
- /package/{migrations → src/migrations}/310503_participantLimit-indexes-composite.js +0 -0
- /package/{migrations → src/migrations}/400401_settlmentWindowStateChange-indexes.js +0 -0
- /package/{migrations → src/migrations}/400501_settlementTransferParticipant-indexes.js +0 -0
- /package/{migrations → src/migrations}/400601_settlementParticipantCurrency-indexes.js +0 -0
- /package/{migrations → src/migrations}/400701_settlementParticipantCurrencyStateChange-indexes.js +0 -0
- /package/{migrations → src/migrations}/400801_settlementStateChange-indexes.js +0 -0
- /package/{migrations → src/migrations}/401002_settlementWindowContent-indexes.js +0 -0
- /package/{migrations → src/migrations}/401201_settlementContentAggregation-indexes.js +0 -0
- /package/{migrations → src/migrations}/401301_settlementModel-indexes.js +0 -0
- /package/{migrations → src/migrations}/410101_transferFulfilmentDuplicateCheck-indexes.js +0 -0
- /package/{migrations → src/migrations}/410201_transferFulfilment-indexes.js +0 -0
- /package/{migrations → src/migrations}/410301_transferExtension-indexes.js +0 -0
- /package/{migrations → src/migrations}/410351_bulkTransferExtension-indexes.js +0 -0
- /package/{migrations → src/migrations}/410401_transferTimeout-indexes.js +0 -0
- /package/{migrations → src/migrations}/410501_transferError-indexes.js +0 -0
- /package/{migrations → src/migrations}/410551_bulkTransferError-indexes.js +0 -0
- /package/{migrations → src/migrations}/410601_expiringTransfer-indexes.js +0 -0
- /package/{migrations → src/migrations}/500100_transactionReference.js +0 -0
- /package/{migrations → src/migrations}/500101_transactionReference-indexes.js +0 -0
- /package/{migrations → src/migrations}/500200_transactionScenario.js +0 -0
- /package/{migrations → src/migrations}/500201_transactionScenario-indexes.js +0 -0
- /package/{migrations → src/migrations}/500300_transactionSubScenario.js +0 -0
- /package/{migrations → src/migrations}/500400_quote.js +0 -0
- /package/{migrations → src/migrations}/500500_quoteParty.js +0 -0
- /package/{migrations → src/migrations}/500600_party.js +0 -0
- /package/{migrations → src/migrations}/500700_quoteResponse.js +0 -0
- /package/{migrations → src/migrations}/500800_quoteResponseIlpPacket.js +0 -0
- /package/{migrations → src/migrations}/500900_geoCode.js +0 -0
- /package/{migrations → src/migrations}/501000_quoteExtension.js +0 -0
- /package/{migrations → src/migrations}/501100_quoteResponseDuplicateCheck.js +0 -0
- /package/{migrations → src/migrations}/501200_quoteError.js +0 -0
- /package/{migrations → src/migrations}/501300_transferRules.js +0 -0
- /package/{migrations → src/migrations}/600011_fxTransferType-indexes.js +0 -0
- /package/{migrations → src/migrations}/600013_fxParticipantCurrencyType-indexes.js +0 -0
- /package/{migrations → src/migrations}/600201_fxTransfer-indexes.js +0 -0
- /package/{migrations → src/migrations}/600401_fxTransferStateChange-indexes.js +0 -0
- /package/{migrations → src/migrations}/600502_fxWatchList-indexes.js +0 -0
- /package/{migrations → src/migrations}/600601_fxTransferFulfilmentDuplicateCheck-indexes.js +0 -0
- /package/{migrations → src/migrations}/600701_fxTransferFulfilment-indexes.js +0 -0
- /package/{migrations → src/migrations}/601401_fxTransferTimeout-indexes.js +0 -0
- /package/{migrations → src/migrations}/601501_fxTransferError-indexes.js +0 -0
- /package/{migrations → src/migrations}/610201_fxTransferParticipant-indexes.js +0 -0
- /package/{migrations → src/migrations}/910102_hotfix954.js +0 -0
- /package/{migrations → src/migrations}/940100_quotePartyIdInfoExtension.js +0 -0
- /package/{migrations → src/migrations}/950100_settlementContentAggregation-decimal184.js +0 -0
- /package/{migrations → src/migrations}/950106_unique_settlement_model_ledger_account_currency.js +0 -0
- /package/{migrations → src/migrations}/950109_fxQuote.js +0 -0
- /package/{migrations → src/migrations}/950110_fxQuoteResponse.js +0 -0
- /package/{migrations → src/migrations}/950111_fxQuoteError.js +0 -0
- /package/{migrations → src/migrations}/950113_fxQuoteDuplicateCheck.js +0 -0
- /package/{migrations → src/migrations}/950114_fxQuoteResponseDuplicateCheck.js +0 -0
- /package/{migrations → src/migrations}/950115_fxQuoteConversionTerms.js +0 -0
- /package/{migrations → src/migrations}/950116_fxQuoteConversionTermsExtension.js +0 -0
- /package/{migrations → src/migrations}/950117_fxQuoteResponseConversionTerms.js +0 -0
- /package/{migrations → src/migrations}/950118_fxQuoteResponseConversionTermsExtension.js +0 -0
- /package/{migrations → src/migrations}/950119_fxCharge.js +0 -0
- /package/{migrations → src/migrations}/960111_alter_fxTransferParticipant__addFiled_externalParticipantId.js +0 -0
- /package/{migrations → src/migrations}/960112_fxTransfer-indexes2.js +0 -0
- /package/{migrations → src/migrations}/960113_fxTransferExtension-indexes.js +0 -0
- /package/{migrations → src/migrations}/960114_fxTransferTimeout-indexes2.js +0 -0
- /package/{migrations → src/migrations}/961000_participantEndpoint_unique.js +0 -0
- /package/{migrations → src/migrations}/migration.template +0 -0
- /package/{seeds → src/seeds}/amountType.js +0 -0
- /package/{seeds → src/seeds}/balanceOfPayments.js +0 -0
- /package/{seeds → src/seeds}/bulkProcessingState.js +0 -0
- /package/{seeds → src/seeds}/bulkTransferState.js +0 -0
- /package/{seeds → src/seeds}/currency.js +0 -0
- /package/{seeds → src/seeds}/endpointType.js +0 -0
- /package/{seeds → src/seeds}/fxParticipantCurrencyType.js +0 -0
- /package/{seeds → src/seeds}/fxTransferType.js +0 -0
- /package/{seeds → src/seeds}/ledgerAccountType.js +0 -0
- /package/{seeds → src/seeds}/ledgerEntryType.js +0 -0
- /package/{seeds → src/seeds}/participantLimitType.js +0 -0
- /package/{seeds → src/seeds}/partyIdentifierType.js +0 -0
- /package/{seeds → src/seeds}/partyType.js +0 -0
- /package/{seeds → src/seeds}/settlementDelay.js +0 -0
- /package/{seeds → src/seeds}/settlementGranularity.js +0 -0
- /package/{seeds → src/seeds}/settlementState.js +0 -0
- /package/{seeds → src/seeds}/settlementWindow1State.js +0 -0
- /package/{seeds → src/seeds}/settlementWindow2Open.js +0 -0
- /package/{seeds → src/seeds}/transactionInitiator.js +0 -0
- /package/{seeds → src/seeds}/transactionInitiatorType.js +0 -0
- /package/{seeds → src/seeds}/transactionScenario.js +0 -0
- /package/{seeds → src/seeds}/transferParticipantRoleType.js +0 -0
- /package/{seeds → src/seeds}/transferState.js +0 -0
- /package/{seeds → src/seeds}/z1000_settlementModel-deprecated.js- +0 -0
|
@@ -0,0 +1,3895 @@
|
|
|
1
|
+
-- Note: This file was generated by ./testing/harness.ts.
|
|
2
|
+
-- It is used to speed up the integration tests, but needs to be recreated every time a new
|
|
3
|
+
-- migration is added. Refer to ./src/testing/harness.ts for instructions of how to update this
|
|
4
|
+
-- snapshot.
|
|
5
|
+
|
|
6
|
+
/*M!999999\- enable the sandbox mode */
|
|
7
|
+
-- MariaDB dump 10.19-12.2.2-MariaDB, for debian-linux-gnu (aarch64)
|
|
8
|
+
--
|
|
9
|
+
-- Host: localhost Database: central_ledger
|
|
10
|
+
-- ------------------------------------------------------
|
|
11
|
+
-- Server version 12.2.2-MariaDB-ubu2404
|
|
12
|
+
|
|
13
|
+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
14
|
+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
15
|
+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
16
|
+
/*!40101 SET NAMES utf8mb4 */;
|
|
17
|
+
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
|
18
|
+
/*!40103 SET TIME_ZONE='+00:00' */;
|
|
19
|
+
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|
20
|
+
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
|
21
|
+
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
|
22
|
+
/*M!100616 SET @OLD_NOTE_VERBOSITY=@@NOTE_VERBOSITY, NOTE_VERBOSITY=0 */;
|
|
23
|
+
|
|
24
|
+
--
|
|
25
|
+
-- Table structure for table `amountType`
|
|
26
|
+
--
|
|
27
|
+
|
|
28
|
+
DROP TABLE IF EXISTS `amountType`;
|
|
29
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
30
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
31
|
+
CREATE TABLE `amountType` (
|
|
32
|
+
`amountTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
33
|
+
`name` varchar(256) NOT NULL,
|
|
34
|
+
`description` varchar(1024) DEFAULT NULL,
|
|
35
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
36
|
+
PRIMARY KEY (`amountTypeId`),
|
|
37
|
+
UNIQUE KEY `amounttype_name_unique` (`name`)
|
|
38
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
39
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
40
|
+
|
|
41
|
+
--
|
|
42
|
+
-- Dumping data for table `amountType`
|
|
43
|
+
--
|
|
44
|
+
|
|
45
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
46
|
+
LOCK TABLES `amountType` WRITE;
|
|
47
|
+
/*!40000 ALTER TABLE `amountType` DISABLE KEYS */;
|
|
48
|
+
/*!40000 ALTER TABLE `amountType` ENABLE KEYS */;
|
|
49
|
+
UNLOCK TABLES;
|
|
50
|
+
COMMIT;
|
|
51
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
52
|
+
|
|
53
|
+
--
|
|
54
|
+
-- Table structure for table `balanceOfPayments`
|
|
55
|
+
--
|
|
56
|
+
|
|
57
|
+
DROP TABLE IF EXISTS `balanceOfPayments`;
|
|
58
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
59
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
60
|
+
CREATE TABLE `balanceOfPayments` (
|
|
61
|
+
`balanceOfPaymentsId` int(10) unsigned NOT NULL,
|
|
62
|
+
`name` varchar(256) NOT NULL,
|
|
63
|
+
`description` varchar(1024) DEFAULT NULL COMMENT 'Possible values and meaning are defined in https://www.imf.org/external/np/sta/bopcode/',
|
|
64
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
65
|
+
PRIMARY KEY (`balanceOfPaymentsId`),
|
|
66
|
+
UNIQUE KEY `balanceofpayments_name_unique` (`name`)
|
|
67
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci COMMENT='See https://www.imf.org/external/np/sta/bopcode/guide.htm';
|
|
68
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
69
|
+
|
|
70
|
+
--
|
|
71
|
+
-- Dumping data for table `balanceOfPayments`
|
|
72
|
+
--
|
|
73
|
+
|
|
74
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
75
|
+
LOCK TABLES `balanceOfPayments` WRITE;
|
|
76
|
+
/*!40000 ALTER TABLE `balanceOfPayments` DISABLE KEYS */;
|
|
77
|
+
/*!40000 ALTER TABLE `balanceOfPayments` ENABLE KEYS */;
|
|
78
|
+
UNLOCK TABLES;
|
|
79
|
+
COMMIT;
|
|
80
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
81
|
+
|
|
82
|
+
--
|
|
83
|
+
-- Table structure for table `bulkProcessingState`
|
|
84
|
+
--
|
|
85
|
+
|
|
86
|
+
DROP TABLE IF EXISTS `bulkProcessingState`;
|
|
87
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
88
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
89
|
+
CREATE TABLE `bulkProcessingState` (
|
|
90
|
+
`bulkProcessingStateId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
91
|
+
`name` varchar(50) NOT NULL,
|
|
92
|
+
`description` varchar(512) DEFAULT NULL,
|
|
93
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
94
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
95
|
+
PRIMARY KEY (`bulkProcessingStateId`),
|
|
96
|
+
UNIQUE KEY `bulkprocessingstate_name_unique` (`name`)
|
|
97
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
98
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
99
|
+
|
|
100
|
+
--
|
|
101
|
+
-- Dumping data for table `bulkProcessingState`
|
|
102
|
+
--
|
|
103
|
+
|
|
104
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
105
|
+
LOCK TABLES `bulkProcessingState` WRITE;
|
|
106
|
+
/*!40000 ALTER TABLE `bulkProcessingState` DISABLE KEYS */;
|
|
107
|
+
/*!40000 ALTER TABLE `bulkProcessingState` ENABLE KEYS */;
|
|
108
|
+
UNLOCK TABLES;
|
|
109
|
+
COMMIT;
|
|
110
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
111
|
+
|
|
112
|
+
--
|
|
113
|
+
-- Table structure for table `bulkTransfer`
|
|
114
|
+
--
|
|
115
|
+
|
|
116
|
+
DROP TABLE IF EXISTS `bulkTransfer`;
|
|
117
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
118
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
119
|
+
CREATE TABLE `bulkTransfer` (
|
|
120
|
+
`bulkTransferId` varchar(36) NOT NULL,
|
|
121
|
+
`bulkQuoteId` varchar(36) DEFAULT NULL,
|
|
122
|
+
`payerParticipantId` int(10) unsigned DEFAULT NULL,
|
|
123
|
+
`payeeParticipantId` int(10) unsigned DEFAULT NULL,
|
|
124
|
+
`expirationDate` datetime NOT NULL,
|
|
125
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
126
|
+
PRIMARY KEY (`bulkTransferId`),
|
|
127
|
+
KEY `bulktransfer_payerparticipantid_index` (`payerParticipantId`),
|
|
128
|
+
KEY `bulktransfer_payeeparticipantid_index` (`payeeParticipantId`),
|
|
129
|
+
CONSTRAINT `bulktransfer_bulktransferid_foreign` FOREIGN KEY (`bulkTransferId`) REFERENCES `bulkTransferDuplicateCheck` (`bulkTransferId`),
|
|
130
|
+
CONSTRAINT `bulktransfer_payeeparticipantid_foreign` FOREIGN KEY (`payeeParticipantId`) REFERENCES `participant` (`participantId`),
|
|
131
|
+
CONSTRAINT `bulktransfer_payerparticipantid_foreign` FOREIGN KEY (`payerParticipantId`) REFERENCES `participant` (`participantId`)
|
|
132
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
133
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
134
|
+
|
|
135
|
+
--
|
|
136
|
+
-- Dumping data for table `bulkTransfer`
|
|
137
|
+
--
|
|
138
|
+
|
|
139
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
140
|
+
LOCK TABLES `bulkTransfer` WRITE;
|
|
141
|
+
/*!40000 ALTER TABLE `bulkTransfer` DISABLE KEYS */;
|
|
142
|
+
/*!40000 ALTER TABLE `bulkTransfer` ENABLE KEYS */;
|
|
143
|
+
UNLOCK TABLES;
|
|
144
|
+
COMMIT;
|
|
145
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
146
|
+
|
|
147
|
+
--
|
|
148
|
+
-- Table structure for table `bulkTransferAssociation`
|
|
149
|
+
--
|
|
150
|
+
|
|
151
|
+
DROP TABLE IF EXISTS `bulkTransferAssociation`;
|
|
152
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
153
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
154
|
+
CREATE TABLE `bulkTransferAssociation` (
|
|
155
|
+
`bulkTransferAssociationId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
156
|
+
`transferId` varchar(36) NOT NULL,
|
|
157
|
+
`bulkTransferId` varchar(36) NOT NULL,
|
|
158
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
159
|
+
`bulkProcessingStateId` int(10) unsigned NOT NULL,
|
|
160
|
+
`lastProcessedDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
161
|
+
`errorCode` int(10) unsigned DEFAULT NULL,
|
|
162
|
+
`errorDescription` varchar(128) DEFAULT NULL,
|
|
163
|
+
PRIMARY KEY (`bulkTransferAssociationId`),
|
|
164
|
+
UNIQUE KEY `bulktransferassociation_transferid_bulktransferid_unique` (`transferId`,`bulkTransferId`),
|
|
165
|
+
KEY `bulktransferassociation_bulktransferid_foreign` (`bulkTransferId`),
|
|
166
|
+
KEY `bulktransferassociation_bulkprocessingstateid_foreign` (`bulkProcessingStateId`),
|
|
167
|
+
CONSTRAINT `bulktransferassociation_bulkprocessingstateid_foreign` FOREIGN KEY (`bulkProcessingStateId`) REFERENCES `bulkProcessingState` (`bulkProcessingStateId`),
|
|
168
|
+
CONSTRAINT `bulktransferassociation_bulktransferid_foreign` FOREIGN KEY (`bulkTransferId`) REFERENCES `bulkTransfer` (`bulkTransferId`)
|
|
169
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
170
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
171
|
+
|
|
172
|
+
--
|
|
173
|
+
-- Dumping data for table `bulkTransferAssociation`
|
|
174
|
+
--
|
|
175
|
+
|
|
176
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
177
|
+
LOCK TABLES `bulkTransferAssociation` WRITE;
|
|
178
|
+
/*!40000 ALTER TABLE `bulkTransferAssociation` DISABLE KEYS */;
|
|
179
|
+
/*!40000 ALTER TABLE `bulkTransferAssociation` ENABLE KEYS */;
|
|
180
|
+
UNLOCK TABLES;
|
|
181
|
+
COMMIT;
|
|
182
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
183
|
+
|
|
184
|
+
--
|
|
185
|
+
-- Table structure for table `bulkTransferDuplicateCheck`
|
|
186
|
+
--
|
|
187
|
+
|
|
188
|
+
DROP TABLE IF EXISTS `bulkTransferDuplicateCheck`;
|
|
189
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
190
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
191
|
+
CREATE TABLE `bulkTransferDuplicateCheck` (
|
|
192
|
+
`bulkTransferId` varchar(36) NOT NULL,
|
|
193
|
+
`hash` varchar(256) NOT NULL,
|
|
194
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
195
|
+
PRIMARY KEY (`bulkTransferId`)
|
|
196
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
197
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
198
|
+
|
|
199
|
+
--
|
|
200
|
+
-- Dumping data for table `bulkTransferDuplicateCheck`
|
|
201
|
+
--
|
|
202
|
+
|
|
203
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
204
|
+
LOCK TABLES `bulkTransferDuplicateCheck` WRITE;
|
|
205
|
+
/*!40000 ALTER TABLE `bulkTransferDuplicateCheck` DISABLE KEYS */;
|
|
206
|
+
/*!40000 ALTER TABLE `bulkTransferDuplicateCheck` ENABLE KEYS */;
|
|
207
|
+
UNLOCK TABLES;
|
|
208
|
+
COMMIT;
|
|
209
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
210
|
+
|
|
211
|
+
--
|
|
212
|
+
-- Table structure for table `bulkTransferError`
|
|
213
|
+
--
|
|
214
|
+
|
|
215
|
+
DROP TABLE IF EXISTS `bulkTransferError`;
|
|
216
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
217
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
218
|
+
CREATE TABLE `bulkTransferError` (
|
|
219
|
+
`bulkTransferErrorId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
220
|
+
`bulkTransferStateChangeId` bigint(20) unsigned NOT NULL,
|
|
221
|
+
`errorCode` int(10) unsigned NOT NULL,
|
|
222
|
+
`errorDescription` varchar(128) NOT NULL,
|
|
223
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
224
|
+
PRIMARY KEY (`bulkTransferErrorId`),
|
|
225
|
+
KEY `bulktransfererror_bulktransferstatechangeid_index` (`bulkTransferStateChangeId`),
|
|
226
|
+
CONSTRAINT `bulktransfererror_bulktransferstatechangeid_foreign` FOREIGN KEY (`bulkTransferStateChangeId`) REFERENCES `bulkTransferStateChange` (`bulkTransferStateChangeId`)
|
|
227
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
228
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
229
|
+
|
|
230
|
+
--
|
|
231
|
+
-- Dumping data for table `bulkTransferError`
|
|
232
|
+
--
|
|
233
|
+
|
|
234
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
235
|
+
LOCK TABLES `bulkTransferError` WRITE;
|
|
236
|
+
/*!40000 ALTER TABLE `bulkTransferError` DISABLE KEYS */;
|
|
237
|
+
/*!40000 ALTER TABLE `bulkTransferError` ENABLE KEYS */;
|
|
238
|
+
UNLOCK TABLES;
|
|
239
|
+
COMMIT;
|
|
240
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
241
|
+
|
|
242
|
+
--
|
|
243
|
+
-- Table structure for table `bulkTransferExtension`
|
|
244
|
+
--
|
|
245
|
+
|
|
246
|
+
DROP TABLE IF EXISTS `bulkTransferExtension`;
|
|
247
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
248
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
249
|
+
CREATE TABLE `bulkTransferExtension` (
|
|
250
|
+
`bulkTransferExtensionId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
251
|
+
`bulkTransferId` varchar(36) NOT NULL,
|
|
252
|
+
`isFulfilment` tinyint(1) NOT NULL DEFAULT 0,
|
|
253
|
+
`key` varchar(128) NOT NULL,
|
|
254
|
+
`value` text NOT NULL,
|
|
255
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
256
|
+
PRIMARY KEY (`bulkTransferExtensionId`),
|
|
257
|
+
KEY `bulktransferextension_bulktransferid_index` (`bulkTransferId`),
|
|
258
|
+
CONSTRAINT `bulktransferextension_bulktransferid_foreign` FOREIGN KEY (`bulkTransferId`) REFERENCES `bulkTransfer` (`bulkTransferId`)
|
|
259
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
260
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
261
|
+
|
|
262
|
+
--
|
|
263
|
+
-- Dumping data for table `bulkTransferExtension`
|
|
264
|
+
--
|
|
265
|
+
|
|
266
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
267
|
+
LOCK TABLES `bulkTransferExtension` WRITE;
|
|
268
|
+
/*!40000 ALTER TABLE `bulkTransferExtension` DISABLE KEYS */;
|
|
269
|
+
/*!40000 ALTER TABLE `bulkTransferExtension` ENABLE KEYS */;
|
|
270
|
+
UNLOCK TABLES;
|
|
271
|
+
COMMIT;
|
|
272
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
273
|
+
|
|
274
|
+
--
|
|
275
|
+
-- Table structure for table `bulkTransferFulfilment`
|
|
276
|
+
--
|
|
277
|
+
|
|
278
|
+
DROP TABLE IF EXISTS `bulkTransferFulfilment`;
|
|
279
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
280
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
281
|
+
CREATE TABLE `bulkTransferFulfilment` (
|
|
282
|
+
`bulkTransferId` varchar(36) NOT NULL,
|
|
283
|
+
`completedDate` datetime NOT NULL,
|
|
284
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
285
|
+
PRIMARY KEY (`bulkTransferId`),
|
|
286
|
+
CONSTRAINT `bulktransferfulfilment_bulktransferid_foreign` FOREIGN KEY (`bulkTransferId`) REFERENCES `bulkTransferFulfilmentDuplicateCheck` (`bulkTransferId`)
|
|
287
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
288
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
289
|
+
|
|
290
|
+
--
|
|
291
|
+
-- Dumping data for table `bulkTransferFulfilment`
|
|
292
|
+
--
|
|
293
|
+
|
|
294
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
295
|
+
LOCK TABLES `bulkTransferFulfilment` WRITE;
|
|
296
|
+
/*!40000 ALTER TABLE `bulkTransferFulfilment` DISABLE KEYS */;
|
|
297
|
+
/*!40000 ALTER TABLE `bulkTransferFulfilment` ENABLE KEYS */;
|
|
298
|
+
UNLOCK TABLES;
|
|
299
|
+
COMMIT;
|
|
300
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
301
|
+
|
|
302
|
+
--
|
|
303
|
+
-- Table structure for table `bulkTransferFulfilmentDuplicateCheck`
|
|
304
|
+
--
|
|
305
|
+
|
|
306
|
+
DROP TABLE IF EXISTS `bulkTransferFulfilmentDuplicateCheck`;
|
|
307
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
308
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
309
|
+
CREATE TABLE `bulkTransferFulfilmentDuplicateCheck` (
|
|
310
|
+
`bulkTransferId` varchar(36) NOT NULL,
|
|
311
|
+
`hash` varchar(256) NOT NULL,
|
|
312
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
313
|
+
PRIMARY KEY (`bulkTransferId`),
|
|
314
|
+
CONSTRAINT `bulktransferfulfilmentduplicatecheck_bulktransferid_foreign` FOREIGN KEY (`bulkTransferId`) REFERENCES `bulkTransfer` (`bulkTransferId`)
|
|
315
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
316
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
317
|
+
|
|
318
|
+
--
|
|
319
|
+
-- Dumping data for table `bulkTransferFulfilmentDuplicateCheck`
|
|
320
|
+
--
|
|
321
|
+
|
|
322
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
323
|
+
LOCK TABLES `bulkTransferFulfilmentDuplicateCheck` WRITE;
|
|
324
|
+
/*!40000 ALTER TABLE `bulkTransferFulfilmentDuplicateCheck` DISABLE KEYS */;
|
|
325
|
+
/*!40000 ALTER TABLE `bulkTransferFulfilmentDuplicateCheck` ENABLE KEYS */;
|
|
326
|
+
UNLOCK TABLES;
|
|
327
|
+
COMMIT;
|
|
328
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
329
|
+
|
|
330
|
+
--
|
|
331
|
+
-- Table structure for table `bulkTransferState`
|
|
332
|
+
--
|
|
333
|
+
|
|
334
|
+
DROP TABLE IF EXISTS `bulkTransferState`;
|
|
335
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
336
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
337
|
+
CREATE TABLE `bulkTransferState` (
|
|
338
|
+
`bulkTransferStateId` varchar(50) NOT NULL,
|
|
339
|
+
`enumeration` varchar(50) NOT NULL COMMENT 'bulkTransferState associated to the Mojaloop API',
|
|
340
|
+
`description` varchar(512) DEFAULT NULL,
|
|
341
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
342
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
343
|
+
PRIMARY KEY (`bulkTransferStateId`)
|
|
344
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
345
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
346
|
+
|
|
347
|
+
--
|
|
348
|
+
-- Dumping data for table `bulkTransferState`
|
|
349
|
+
--
|
|
350
|
+
|
|
351
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
352
|
+
LOCK TABLES `bulkTransferState` WRITE;
|
|
353
|
+
/*!40000 ALTER TABLE `bulkTransferState` DISABLE KEYS */;
|
|
354
|
+
/*!40000 ALTER TABLE `bulkTransferState` ENABLE KEYS */;
|
|
355
|
+
UNLOCK TABLES;
|
|
356
|
+
COMMIT;
|
|
357
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
358
|
+
|
|
359
|
+
--
|
|
360
|
+
-- Table structure for table `bulkTransferStateChange`
|
|
361
|
+
--
|
|
362
|
+
|
|
363
|
+
DROP TABLE IF EXISTS `bulkTransferStateChange`;
|
|
364
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
365
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
366
|
+
CREATE TABLE `bulkTransferStateChange` (
|
|
367
|
+
`bulkTransferStateChangeId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
368
|
+
`bulkTransferId` varchar(36) NOT NULL,
|
|
369
|
+
`bulkTransferStateId` varchar(50) NOT NULL,
|
|
370
|
+
`reason` varchar(512) DEFAULT NULL,
|
|
371
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
372
|
+
PRIMARY KEY (`bulkTransferStateChangeId`),
|
|
373
|
+
KEY `bulktransferstatechange_bulktransferid_index` (`bulkTransferId`),
|
|
374
|
+
KEY `bulktransferstatechange_bulktransferstateid_index` (`bulkTransferStateId`),
|
|
375
|
+
CONSTRAINT `bulktransferstatechange_bulktransferid_foreign` FOREIGN KEY (`bulkTransferId`) REFERENCES `bulkTransfer` (`bulkTransferId`),
|
|
376
|
+
CONSTRAINT `bulktransferstatechange_bulktransferstateid_foreign` FOREIGN KEY (`bulkTransferStateId`) REFERENCES `bulkTransferState` (`bulkTransferStateId`)
|
|
377
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
378
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
379
|
+
|
|
380
|
+
--
|
|
381
|
+
-- Dumping data for table `bulkTransferStateChange`
|
|
382
|
+
--
|
|
383
|
+
|
|
384
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
385
|
+
LOCK TABLES `bulkTransferStateChange` WRITE;
|
|
386
|
+
/*!40000 ALTER TABLE `bulkTransferStateChange` DISABLE KEYS */;
|
|
387
|
+
/*!40000 ALTER TABLE `bulkTransferStateChange` ENABLE KEYS */;
|
|
388
|
+
UNLOCK TABLES;
|
|
389
|
+
COMMIT;
|
|
390
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
391
|
+
|
|
392
|
+
--
|
|
393
|
+
-- Table structure for table `contactType`
|
|
394
|
+
--
|
|
395
|
+
|
|
396
|
+
DROP TABLE IF EXISTS `contactType`;
|
|
397
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
398
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
399
|
+
CREATE TABLE `contactType` (
|
|
400
|
+
`contactTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
401
|
+
`name` varchar(50) NOT NULL,
|
|
402
|
+
`description` varchar(512) DEFAULT NULL,
|
|
403
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
404
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
405
|
+
PRIMARY KEY (`contactTypeId`),
|
|
406
|
+
UNIQUE KEY `contacttype_name_unique` (`name`)
|
|
407
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
408
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
409
|
+
|
|
410
|
+
--
|
|
411
|
+
-- Dumping data for table `contactType`
|
|
412
|
+
--
|
|
413
|
+
|
|
414
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
415
|
+
LOCK TABLES `contactType` WRITE;
|
|
416
|
+
/*!40000 ALTER TABLE `contactType` DISABLE KEYS */;
|
|
417
|
+
/*!40000 ALTER TABLE `contactType` ENABLE KEYS */;
|
|
418
|
+
UNLOCK TABLES;
|
|
419
|
+
COMMIT;
|
|
420
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
421
|
+
|
|
422
|
+
--
|
|
423
|
+
-- Table structure for table `currency`
|
|
424
|
+
--
|
|
425
|
+
|
|
426
|
+
DROP TABLE IF EXISTS `currency`;
|
|
427
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
428
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
429
|
+
CREATE TABLE `currency` (
|
|
430
|
+
`currencyId` varchar(3) NOT NULL,
|
|
431
|
+
`name` varchar(128) DEFAULT NULL,
|
|
432
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
433
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
434
|
+
`scale` int(10) unsigned NOT NULL DEFAULT 4,
|
|
435
|
+
PRIMARY KEY (`currencyId`)
|
|
436
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
437
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
438
|
+
|
|
439
|
+
--
|
|
440
|
+
-- Dumping data for table `currency`
|
|
441
|
+
--
|
|
442
|
+
|
|
443
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
444
|
+
LOCK TABLES `currency` WRITE;
|
|
445
|
+
/*!40000 ALTER TABLE `currency` DISABLE KEYS */;
|
|
446
|
+
/*!40000 ALTER TABLE `currency` ENABLE KEYS */;
|
|
447
|
+
UNLOCK TABLES;
|
|
448
|
+
COMMIT;
|
|
449
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
450
|
+
|
|
451
|
+
--
|
|
452
|
+
-- Table structure for table `endpointType`
|
|
453
|
+
--
|
|
454
|
+
|
|
455
|
+
DROP TABLE IF EXISTS `endpointType`;
|
|
456
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
457
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
458
|
+
CREATE TABLE `endpointType` (
|
|
459
|
+
`endpointTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
460
|
+
`name` varchar(50) NOT NULL,
|
|
461
|
+
`description` varchar(512) DEFAULT NULL,
|
|
462
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
463
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
464
|
+
PRIMARY KEY (`endpointTypeId`),
|
|
465
|
+
UNIQUE KEY `endpointtype_name_unique` (`name`)
|
|
466
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
467
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
468
|
+
|
|
469
|
+
--
|
|
470
|
+
-- Dumping data for table `endpointType`
|
|
471
|
+
--
|
|
472
|
+
|
|
473
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
474
|
+
LOCK TABLES `endpointType` WRITE;
|
|
475
|
+
/*!40000 ALTER TABLE `endpointType` DISABLE KEYS */;
|
|
476
|
+
/*!40000 ALTER TABLE `endpointType` ENABLE KEYS */;
|
|
477
|
+
UNLOCK TABLES;
|
|
478
|
+
COMMIT;
|
|
479
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
480
|
+
|
|
481
|
+
--
|
|
482
|
+
-- Table structure for table `event`
|
|
483
|
+
--
|
|
484
|
+
|
|
485
|
+
DROP TABLE IF EXISTS `event`;
|
|
486
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
487
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
488
|
+
CREATE TABLE `event` (
|
|
489
|
+
`eventId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
490
|
+
`name` varchar(128) NOT NULL,
|
|
491
|
+
`description` varchar(512) DEFAULT NULL,
|
|
492
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
493
|
+
PRIMARY KEY (`eventId`)
|
|
494
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
495
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
496
|
+
|
|
497
|
+
--
|
|
498
|
+
-- Dumping data for table `event`
|
|
499
|
+
--
|
|
500
|
+
|
|
501
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
502
|
+
LOCK TABLES `event` WRITE;
|
|
503
|
+
/*!40000 ALTER TABLE `event` DISABLE KEYS */;
|
|
504
|
+
/*!40000 ALTER TABLE `event` ENABLE KEYS */;
|
|
505
|
+
UNLOCK TABLES;
|
|
506
|
+
COMMIT;
|
|
507
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
508
|
+
|
|
509
|
+
--
|
|
510
|
+
-- Table structure for table `expiringTransfer`
|
|
511
|
+
--
|
|
512
|
+
|
|
513
|
+
DROP TABLE IF EXISTS `expiringTransfer`;
|
|
514
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
515
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
516
|
+
CREATE TABLE `expiringTransfer` (
|
|
517
|
+
`expiringTransferId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
518
|
+
`transferId` varchar(36) NOT NULL,
|
|
519
|
+
`expirationDate` datetime NOT NULL,
|
|
520
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
521
|
+
PRIMARY KEY (`expiringTransferId`),
|
|
522
|
+
UNIQUE KEY `expiringtransfer_transferid_unique` (`transferId`),
|
|
523
|
+
KEY `expiringtransfer_expirationdate_index` (`expirationDate`),
|
|
524
|
+
CONSTRAINT `expiringtransfer_transferid_foreign` FOREIGN KEY (`transferId`) REFERENCES `transfer` (`transferId`)
|
|
525
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
526
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
527
|
+
|
|
528
|
+
--
|
|
529
|
+
-- Dumping data for table `expiringTransfer`
|
|
530
|
+
--
|
|
531
|
+
|
|
532
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
533
|
+
LOCK TABLES `expiringTransfer` WRITE;
|
|
534
|
+
/*!40000 ALTER TABLE `expiringTransfer` DISABLE KEYS */;
|
|
535
|
+
/*!40000 ALTER TABLE `expiringTransfer` ENABLE KEYS */;
|
|
536
|
+
UNLOCK TABLES;
|
|
537
|
+
COMMIT;
|
|
538
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
539
|
+
|
|
540
|
+
--
|
|
541
|
+
-- Table structure for table `externalParticipant`
|
|
542
|
+
--
|
|
543
|
+
|
|
544
|
+
DROP TABLE IF EXISTS `externalParticipant`;
|
|
545
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
546
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
547
|
+
CREATE TABLE `externalParticipant` (
|
|
548
|
+
`externalParticipantId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
549
|
+
`name` varchar(30) NOT NULL,
|
|
550
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
551
|
+
`proxyId` int(10) unsigned NOT NULL,
|
|
552
|
+
PRIMARY KEY (`externalParticipantId`),
|
|
553
|
+
UNIQUE KEY `externalparticipant_name_unique` (`name`),
|
|
554
|
+
KEY `externalparticipant_proxyid_foreign` (`proxyId`),
|
|
555
|
+
CONSTRAINT `externalparticipant_proxyid_foreign` FOREIGN KEY (`proxyId`) REFERENCES `participant` (`participantId`)
|
|
556
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
557
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
558
|
+
|
|
559
|
+
--
|
|
560
|
+
-- Dumping data for table `externalParticipant`
|
|
561
|
+
--
|
|
562
|
+
|
|
563
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
564
|
+
LOCK TABLES `externalParticipant` WRITE;
|
|
565
|
+
/*!40000 ALTER TABLE `externalParticipant` DISABLE KEYS */;
|
|
566
|
+
/*!40000 ALTER TABLE `externalParticipant` ENABLE KEYS */;
|
|
567
|
+
UNLOCK TABLES;
|
|
568
|
+
COMMIT;
|
|
569
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
570
|
+
|
|
571
|
+
--
|
|
572
|
+
-- Table structure for table `fxCharge`
|
|
573
|
+
--
|
|
574
|
+
|
|
575
|
+
DROP TABLE IF EXISTS `fxCharge`;
|
|
576
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
577
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
578
|
+
CREATE TABLE `fxCharge` (
|
|
579
|
+
`fxChargeId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
580
|
+
`chargeType` varchar(32) NOT NULL COMMENT 'A description of the charge which is being levied.',
|
|
581
|
+
`conversionId` varchar(36) NOT NULL,
|
|
582
|
+
`sourceAmount` decimal(18,4) DEFAULT NULL COMMENT 'The amount of the charge which is being levied, expressed in the source currency.',
|
|
583
|
+
`sourceCurrency` varchar(3) DEFAULT NULL COMMENT 'The currency in which the source amount charge is being levied.',
|
|
584
|
+
`targetAmount` decimal(18,4) DEFAULT NULL COMMENT 'The amount of the charge which is being levied, expressed in the target currency.',
|
|
585
|
+
`targetCurrency` varchar(3) DEFAULT NULL COMMENT 'The currency in which the target amount charge is being levied.',
|
|
586
|
+
PRIMARY KEY (`fxChargeId`),
|
|
587
|
+
KEY `fxcharge_conversionid_foreign` (`conversionId`),
|
|
588
|
+
CONSTRAINT `fxcharge_conversionid_foreign` FOREIGN KEY (`conversionId`) REFERENCES `fxQuoteResponseConversionTerms` (`conversionId`)
|
|
589
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
590
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
591
|
+
|
|
592
|
+
--
|
|
593
|
+
-- Dumping data for table `fxCharge`
|
|
594
|
+
--
|
|
595
|
+
|
|
596
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
597
|
+
LOCK TABLES `fxCharge` WRITE;
|
|
598
|
+
/*!40000 ALTER TABLE `fxCharge` DISABLE KEYS */;
|
|
599
|
+
/*!40000 ALTER TABLE `fxCharge` ENABLE KEYS */;
|
|
600
|
+
UNLOCK TABLES;
|
|
601
|
+
COMMIT;
|
|
602
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
603
|
+
|
|
604
|
+
--
|
|
605
|
+
-- Table structure for table `fxParticipantCurrencyType`
|
|
606
|
+
--
|
|
607
|
+
|
|
608
|
+
DROP TABLE IF EXISTS `fxParticipantCurrencyType`;
|
|
609
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
610
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
611
|
+
CREATE TABLE `fxParticipantCurrencyType` (
|
|
612
|
+
`fxParticipantCurrencyTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
613
|
+
`name` varchar(50) NOT NULL,
|
|
614
|
+
`description` varchar(512) DEFAULT NULL,
|
|
615
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
616
|
+
PRIMARY KEY (`fxParticipantCurrencyTypeId`),
|
|
617
|
+
UNIQUE KEY `fxparticipantcurrencytype_name_unique` (`name`)
|
|
618
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
619
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
620
|
+
|
|
621
|
+
--
|
|
622
|
+
-- Dumping data for table `fxParticipantCurrencyType`
|
|
623
|
+
--
|
|
624
|
+
|
|
625
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
626
|
+
LOCK TABLES `fxParticipantCurrencyType` WRITE;
|
|
627
|
+
/*!40000 ALTER TABLE `fxParticipantCurrencyType` DISABLE KEYS */;
|
|
628
|
+
/*!40000 ALTER TABLE `fxParticipantCurrencyType` ENABLE KEYS */;
|
|
629
|
+
UNLOCK TABLES;
|
|
630
|
+
COMMIT;
|
|
631
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
632
|
+
|
|
633
|
+
--
|
|
634
|
+
-- Table structure for table `fxQuote`
|
|
635
|
+
--
|
|
636
|
+
|
|
637
|
+
DROP TABLE IF EXISTS `fxQuote`;
|
|
638
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
639
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
640
|
+
CREATE TABLE `fxQuote` (
|
|
641
|
+
`conversionRequestId` varchar(36) NOT NULL,
|
|
642
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
643
|
+
PRIMARY KEY (`conversionRequestId`)
|
|
644
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
645
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
646
|
+
|
|
647
|
+
--
|
|
648
|
+
-- Dumping data for table `fxQuote`
|
|
649
|
+
--
|
|
650
|
+
|
|
651
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
652
|
+
LOCK TABLES `fxQuote` WRITE;
|
|
653
|
+
/*!40000 ALTER TABLE `fxQuote` DISABLE KEYS */;
|
|
654
|
+
/*!40000 ALTER TABLE `fxQuote` ENABLE KEYS */;
|
|
655
|
+
UNLOCK TABLES;
|
|
656
|
+
COMMIT;
|
|
657
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
658
|
+
|
|
659
|
+
--
|
|
660
|
+
-- Table structure for table `fxQuoteConversionTerms`
|
|
661
|
+
--
|
|
662
|
+
|
|
663
|
+
DROP TABLE IF EXISTS `fxQuoteConversionTerms`;
|
|
664
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
665
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
666
|
+
CREATE TABLE `fxQuoteConversionTerms` (
|
|
667
|
+
`conversionId` varchar(255) NOT NULL,
|
|
668
|
+
`determiningTransferId` varchar(36) DEFAULT NULL,
|
|
669
|
+
`conversionRequestId` varchar(36) NOT NULL,
|
|
670
|
+
`amountTypeId` int(10) unsigned NOT NULL COMMENT 'This is part of the transaction type that contains valid elements for - Amount Type',
|
|
671
|
+
`initiatingFsp` varchar(255) DEFAULT NULL,
|
|
672
|
+
`counterPartyFsp` varchar(255) DEFAULT NULL,
|
|
673
|
+
`sourceAmount` decimal(18,4) DEFAULT NULL,
|
|
674
|
+
`sourceCurrency` varchar(3) NOT NULL,
|
|
675
|
+
`targetAmount` decimal(18,4) DEFAULT NULL,
|
|
676
|
+
`targetCurrency` varchar(3) NOT NULL,
|
|
677
|
+
`expirationDate` datetime NOT NULL,
|
|
678
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
679
|
+
PRIMARY KEY (`conversionId`),
|
|
680
|
+
KEY `fxquoteconversionterms_conversionrequestid_foreign` (`conversionRequestId`),
|
|
681
|
+
KEY `fxquoteconversionterms_amounttypeid_foreign` (`amountTypeId`),
|
|
682
|
+
KEY `fxquoteconversionterms_sourcecurrency_foreign` (`sourceCurrency`),
|
|
683
|
+
KEY `fxquoteconversionterms_targetcurrency_foreign` (`targetCurrency`),
|
|
684
|
+
CONSTRAINT `fxquoteconversionterms_amounttypeid_foreign` FOREIGN KEY (`amountTypeId`) REFERENCES `amountType` (`amountTypeId`),
|
|
685
|
+
CONSTRAINT `fxquoteconversionterms_conversionrequestid_foreign` FOREIGN KEY (`conversionRequestId`) REFERENCES `fxQuote` (`conversionRequestId`),
|
|
686
|
+
CONSTRAINT `fxquoteconversionterms_sourcecurrency_foreign` FOREIGN KEY (`sourceCurrency`) REFERENCES `currency` (`currencyId`),
|
|
687
|
+
CONSTRAINT `fxquoteconversionterms_targetcurrency_foreign` FOREIGN KEY (`targetCurrency`) REFERENCES `currency` (`currencyId`)
|
|
688
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
689
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
690
|
+
|
|
691
|
+
--
|
|
692
|
+
-- Dumping data for table `fxQuoteConversionTerms`
|
|
693
|
+
--
|
|
694
|
+
|
|
695
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
696
|
+
LOCK TABLES `fxQuoteConversionTerms` WRITE;
|
|
697
|
+
/*!40000 ALTER TABLE `fxQuoteConversionTerms` DISABLE KEYS */;
|
|
698
|
+
/*!40000 ALTER TABLE `fxQuoteConversionTerms` ENABLE KEYS */;
|
|
699
|
+
UNLOCK TABLES;
|
|
700
|
+
COMMIT;
|
|
701
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
702
|
+
|
|
703
|
+
--
|
|
704
|
+
-- Table structure for table `fxQuoteConversionTermsExtension`
|
|
705
|
+
--
|
|
706
|
+
|
|
707
|
+
DROP TABLE IF EXISTS `fxQuoteConversionTermsExtension`;
|
|
708
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
709
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
710
|
+
CREATE TABLE `fxQuoteConversionTermsExtension` (
|
|
711
|
+
`fxQuoteConversionTermExtension` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
712
|
+
`conversionId` varchar(36) NOT NULL,
|
|
713
|
+
`key` varchar(128) NOT NULL,
|
|
714
|
+
`value` text NOT NULL,
|
|
715
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
716
|
+
PRIMARY KEY (`fxQuoteConversionTermExtension`),
|
|
717
|
+
KEY `fxquoteconversiontermsextension_conversionid_foreign` (`conversionId`),
|
|
718
|
+
CONSTRAINT `fxquoteconversiontermsextension_conversionid_foreign` FOREIGN KEY (`conversionId`) REFERENCES `fxQuoteConversionTerms` (`conversionId`)
|
|
719
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
720
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
721
|
+
|
|
722
|
+
--
|
|
723
|
+
-- Dumping data for table `fxQuoteConversionTermsExtension`
|
|
724
|
+
--
|
|
725
|
+
|
|
726
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
727
|
+
LOCK TABLES `fxQuoteConversionTermsExtension` WRITE;
|
|
728
|
+
/*!40000 ALTER TABLE `fxQuoteConversionTermsExtension` DISABLE KEYS */;
|
|
729
|
+
/*!40000 ALTER TABLE `fxQuoteConversionTermsExtension` ENABLE KEYS */;
|
|
730
|
+
UNLOCK TABLES;
|
|
731
|
+
COMMIT;
|
|
732
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
733
|
+
|
|
734
|
+
--
|
|
735
|
+
-- Table structure for table `fxQuoteDuplicateCheck`
|
|
736
|
+
--
|
|
737
|
+
|
|
738
|
+
DROP TABLE IF EXISTS `fxQuoteDuplicateCheck`;
|
|
739
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
740
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
741
|
+
CREATE TABLE `fxQuoteDuplicateCheck` (
|
|
742
|
+
`conversionRequestId` varchar(36) NOT NULL,
|
|
743
|
+
`hash` varchar(1024) DEFAULT NULL COMMENT 'hash value received for the quote request',
|
|
744
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
745
|
+
PRIMARY KEY (`conversionRequestId`)
|
|
746
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
747
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
748
|
+
|
|
749
|
+
--
|
|
750
|
+
-- Dumping data for table `fxQuoteDuplicateCheck`
|
|
751
|
+
--
|
|
752
|
+
|
|
753
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
754
|
+
LOCK TABLES `fxQuoteDuplicateCheck` WRITE;
|
|
755
|
+
/*!40000 ALTER TABLE `fxQuoteDuplicateCheck` DISABLE KEYS */;
|
|
756
|
+
/*!40000 ALTER TABLE `fxQuoteDuplicateCheck` ENABLE KEYS */;
|
|
757
|
+
UNLOCK TABLES;
|
|
758
|
+
COMMIT;
|
|
759
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
760
|
+
|
|
761
|
+
--
|
|
762
|
+
-- Table structure for table `fxQuoteError`
|
|
763
|
+
--
|
|
764
|
+
|
|
765
|
+
DROP TABLE IF EXISTS `fxQuoteError`;
|
|
766
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
767
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
768
|
+
CREATE TABLE `fxQuoteError` (
|
|
769
|
+
`fxQuoteErrorId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
770
|
+
`conversionRequestId` varchar(36) NOT NULL,
|
|
771
|
+
`fxQuoteResponseId` bigint(20) unsigned DEFAULT NULL COMMENT 'The response to the initial fxQuote',
|
|
772
|
+
`errorCode` int(10) unsigned NOT NULL,
|
|
773
|
+
`errorDescription` varchar(128) NOT NULL,
|
|
774
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
775
|
+
PRIMARY KEY (`fxQuoteErrorId`),
|
|
776
|
+
KEY `fxquoteerror_conversionrequestid_foreign` (`conversionRequestId`),
|
|
777
|
+
KEY `fxquoteerror_fxquoteresponseid_foreign` (`fxQuoteResponseId`),
|
|
778
|
+
CONSTRAINT `fxquoteerror_conversionrequestid_foreign` FOREIGN KEY (`conversionRequestId`) REFERENCES `fxQuote` (`conversionRequestId`),
|
|
779
|
+
CONSTRAINT `fxquoteerror_fxquoteresponseid_foreign` FOREIGN KEY (`fxQuoteResponseId`) REFERENCES `fxQuoteResponse` (`fxQuoteResponseId`)
|
|
780
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
781
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
782
|
+
|
|
783
|
+
--
|
|
784
|
+
-- Dumping data for table `fxQuoteError`
|
|
785
|
+
--
|
|
786
|
+
|
|
787
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
788
|
+
LOCK TABLES `fxQuoteError` WRITE;
|
|
789
|
+
/*!40000 ALTER TABLE `fxQuoteError` DISABLE KEYS */;
|
|
790
|
+
/*!40000 ALTER TABLE `fxQuoteError` ENABLE KEYS */;
|
|
791
|
+
UNLOCK TABLES;
|
|
792
|
+
COMMIT;
|
|
793
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
794
|
+
|
|
795
|
+
--
|
|
796
|
+
-- Table structure for table `fxQuoteResponse`
|
|
797
|
+
--
|
|
798
|
+
|
|
799
|
+
DROP TABLE IF EXISTS `fxQuoteResponse`;
|
|
800
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
801
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
802
|
+
CREATE TABLE `fxQuoteResponse` (
|
|
803
|
+
`fxQuoteResponseId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
804
|
+
`conversionRequestId` varchar(36) NOT NULL,
|
|
805
|
+
`ilpCondition` varchar(256) NOT NULL,
|
|
806
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
807
|
+
PRIMARY KEY (`fxQuoteResponseId`),
|
|
808
|
+
KEY `fxquoteresponse_conversionrequestid_foreign` (`conversionRequestId`),
|
|
809
|
+
CONSTRAINT `fxquoteresponse_conversionrequestid_foreign` FOREIGN KEY (`conversionRequestId`) REFERENCES `fxQuote` (`conversionRequestId`)
|
|
810
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
811
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
812
|
+
|
|
813
|
+
--
|
|
814
|
+
-- Dumping data for table `fxQuoteResponse`
|
|
815
|
+
--
|
|
816
|
+
|
|
817
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
818
|
+
LOCK TABLES `fxQuoteResponse` WRITE;
|
|
819
|
+
/*!40000 ALTER TABLE `fxQuoteResponse` DISABLE KEYS */;
|
|
820
|
+
/*!40000 ALTER TABLE `fxQuoteResponse` ENABLE KEYS */;
|
|
821
|
+
UNLOCK TABLES;
|
|
822
|
+
COMMIT;
|
|
823
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
824
|
+
|
|
825
|
+
--
|
|
826
|
+
-- Table structure for table `fxQuoteResponseConversionTerms`
|
|
827
|
+
--
|
|
828
|
+
|
|
829
|
+
DROP TABLE IF EXISTS `fxQuoteResponseConversionTerms`;
|
|
830
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
831
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
832
|
+
CREATE TABLE `fxQuoteResponseConversionTerms` (
|
|
833
|
+
`conversionId` varchar(255) NOT NULL,
|
|
834
|
+
`determiningTransferId` varchar(36) DEFAULT NULL,
|
|
835
|
+
`conversionRequestId` varchar(36) NOT NULL,
|
|
836
|
+
`fxQuoteResponseId` bigint(20) unsigned NOT NULL,
|
|
837
|
+
`amountTypeId` int(10) unsigned NOT NULL COMMENT 'This is part of the transaction type that contains valid elements for - Amount Type',
|
|
838
|
+
`initiatingFsp` varchar(255) DEFAULT NULL,
|
|
839
|
+
`counterPartyFsp` varchar(255) DEFAULT NULL,
|
|
840
|
+
`sourceAmount` decimal(18,4) NOT NULL,
|
|
841
|
+
`sourceCurrency` varchar(3) NOT NULL,
|
|
842
|
+
`targetAmount` decimal(18,4) NOT NULL,
|
|
843
|
+
`targetCurrency` varchar(3) NOT NULL,
|
|
844
|
+
`expirationDate` datetime NOT NULL,
|
|
845
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
846
|
+
PRIMARY KEY (`conversionId`),
|
|
847
|
+
KEY `fxquoteresponseconversionterms_conversionrequestid_foreign` (`conversionRequestId`),
|
|
848
|
+
KEY `fxquoteresponseconversionterms_fxquoteresponseid_foreign` (`fxQuoteResponseId`),
|
|
849
|
+
KEY `fxquoteresponseconversionterms_amounttypeid_foreign` (`amountTypeId`),
|
|
850
|
+
KEY `fxquoteresponseconversionterms_sourcecurrency_foreign` (`sourceCurrency`),
|
|
851
|
+
KEY `fxquoteresponseconversionterms_targetcurrency_foreign` (`targetCurrency`),
|
|
852
|
+
CONSTRAINT `fxquoteresponseconversionterms_amounttypeid_foreign` FOREIGN KEY (`amountTypeId`) REFERENCES `amountType` (`amountTypeId`),
|
|
853
|
+
CONSTRAINT `fxquoteresponseconversionterms_conversionrequestid_foreign` FOREIGN KEY (`conversionRequestId`) REFERENCES `fxQuote` (`conversionRequestId`),
|
|
854
|
+
CONSTRAINT `fxquoteresponseconversionterms_fxquoteresponseid_foreign` FOREIGN KEY (`fxQuoteResponseId`) REFERENCES `fxQuoteResponse` (`fxQuoteResponseId`),
|
|
855
|
+
CONSTRAINT `fxquoteresponseconversionterms_sourcecurrency_foreign` FOREIGN KEY (`sourceCurrency`) REFERENCES `currency` (`currencyId`),
|
|
856
|
+
CONSTRAINT `fxquoteresponseconversionterms_targetcurrency_foreign` FOREIGN KEY (`targetCurrency`) REFERENCES `currency` (`currencyId`)
|
|
857
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
858
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
859
|
+
|
|
860
|
+
--
|
|
861
|
+
-- Dumping data for table `fxQuoteResponseConversionTerms`
|
|
862
|
+
--
|
|
863
|
+
|
|
864
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
865
|
+
LOCK TABLES `fxQuoteResponseConversionTerms` WRITE;
|
|
866
|
+
/*!40000 ALTER TABLE `fxQuoteResponseConversionTerms` DISABLE KEYS */;
|
|
867
|
+
/*!40000 ALTER TABLE `fxQuoteResponseConversionTerms` ENABLE KEYS */;
|
|
868
|
+
UNLOCK TABLES;
|
|
869
|
+
COMMIT;
|
|
870
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
871
|
+
|
|
872
|
+
--
|
|
873
|
+
-- Table structure for table `fxQuoteResponseConversionTermsExtension`
|
|
874
|
+
--
|
|
875
|
+
|
|
876
|
+
DROP TABLE IF EXISTS `fxQuoteResponseConversionTermsExtension`;
|
|
877
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
878
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
879
|
+
CREATE TABLE `fxQuoteResponseConversionTermsExtension` (
|
|
880
|
+
`fxQuoteResponseConversionTermsExtension` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
881
|
+
`conversionId` varchar(36) NOT NULL,
|
|
882
|
+
`key` varchar(128) NOT NULL,
|
|
883
|
+
`value` text NOT NULL,
|
|
884
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
885
|
+
PRIMARY KEY (`fxQuoteResponseConversionTermsExtension`),
|
|
886
|
+
KEY `fxquoteresponseconversiontermsextension_conversionid_foreign` (`conversionId`),
|
|
887
|
+
CONSTRAINT `fxquoteresponseconversiontermsextension_conversionid_foreign` FOREIGN KEY (`conversionId`) REFERENCES `fxQuoteResponseConversionTerms` (`conversionId`)
|
|
888
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
889
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
890
|
+
|
|
891
|
+
--
|
|
892
|
+
-- Dumping data for table `fxQuoteResponseConversionTermsExtension`
|
|
893
|
+
--
|
|
894
|
+
|
|
895
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
896
|
+
LOCK TABLES `fxQuoteResponseConversionTermsExtension` WRITE;
|
|
897
|
+
/*!40000 ALTER TABLE `fxQuoteResponseConversionTermsExtension` DISABLE KEYS */;
|
|
898
|
+
/*!40000 ALTER TABLE `fxQuoteResponseConversionTermsExtension` ENABLE KEYS */;
|
|
899
|
+
UNLOCK TABLES;
|
|
900
|
+
COMMIT;
|
|
901
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
902
|
+
|
|
903
|
+
--
|
|
904
|
+
-- Table structure for table `fxQuoteResponseDuplicateCheck`
|
|
905
|
+
--
|
|
906
|
+
|
|
907
|
+
DROP TABLE IF EXISTS `fxQuoteResponseDuplicateCheck`;
|
|
908
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
909
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
910
|
+
CREATE TABLE `fxQuoteResponseDuplicateCheck` (
|
|
911
|
+
`fxQuoteResponseId` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'The response to the initial quote',
|
|
912
|
+
`conversionRequestId` varchar(36) NOT NULL,
|
|
913
|
+
`hash` varchar(255) DEFAULT NULL COMMENT 'hash value received for the quote response',
|
|
914
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
915
|
+
PRIMARY KEY (`fxQuoteResponseId`),
|
|
916
|
+
KEY `fxquoteresponseduplicatecheck_conversionrequestid_foreign` (`conversionRequestId`),
|
|
917
|
+
CONSTRAINT `fxquoteresponseduplicatecheck_conversionrequestid_foreign` FOREIGN KEY (`conversionRequestId`) REFERENCES `fxQuote` (`conversionRequestId`),
|
|
918
|
+
CONSTRAINT `fxquoteresponseduplicatecheck_fxquoteresponseid_foreign` FOREIGN KEY (`fxQuoteResponseId`) REFERENCES `fxQuoteResponse` (`fxQuoteResponseId`)
|
|
919
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
920
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
921
|
+
|
|
922
|
+
--
|
|
923
|
+
-- Dumping data for table `fxQuoteResponseDuplicateCheck`
|
|
924
|
+
--
|
|
925
|
+
|
|
926
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
927
|
+
LOCK TABLES `fxQuoteResponseDuplicateCheck` WRITE;
|
|
928
|
+
/*!40000 ALTER TABLE `fxQuoteResponseDuplicateCheck` DISABLE KEYS */;
|
|
929
|
+
/*!40000 ALTER TABLE `fxQuoteResponseDuplicateCheck` ENABLE KEYS */;
|
|
930
|
+
UNLOCK TABLES;
|
|
931
|
+
COMMIT;
|
|
932
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
933
|
+
|
|
934
|
+
--
|
|
935
|
+
-- Table structure for table `fxTransfer`
|
|
936
|
+
--
|
|
937
|
+
|
|
938
|
+
DROP TABLE IF EXISTS `fxTransfer`;
|
|
939
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
940
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
941
|
+
CREATE TABLE `fxTransfer` (
|
|
942
|
+
`commitRequestId` varchar(36) NOT NULL,
|
|
943
|
+
`determiningTransferId` varchar(36) DEFAULT NULL,
|
|
944
|
+
`sourceAmount` decimal(18,4) NOT NULL,
|
|
945
|
+
`targetAmount` decimal(18,4) NOT NULL,
|
|
946
|
+
`sourceCurrency` varchar(3) NOT NULL,
|
|
947
|
+
`targetCurrency` varchar(3) NOT NULL,
|
|
948
|
+
`ilpCondition` varchar(256) NOT NULL,
|
|
949
|
+
`expirationDate` datetime NOT NULL,
|
|
950
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
951
|
+
PRIMARY KEY (`commitRequestId`),
|
|
952
|
+
KEY `fxtransfer_sourcecurrency_index` (`sourceCurrency`),
|
|
953
|
+
KEY `fxtransfer_targetcurrency_index` (`targetCurrency`),
|
|
954
|
+
KEY `fxtransfer_determiningtransferid_index` (`determiningTransferId`),
|
|
955
|
+
CONSTRAINT `fxtransfer_commitrequestid_foreign` FOREIGN KEY (`commitRequestId`) REFERENCES `fxTransferDuplicateCheck` (`commitRequestId`),
|
|
956
|
+
CONSTRAINT `fxtransfer_sourcecurrency_foreign` FOREIGN KEY (`sourceCurrency`) REFERENCES `currency` (`currencyId`),
|
|
957
|
+
CONSTRAINT `fxtransfer_targetcurrency_foreign` FOREIGN KEY (`targetCurrency`) REFERENCES `currency` (`currencyId`)
|
|
958
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
959
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
960
|
+
|
|
961
|
+
--
|
|
962
|
+
-- Dumping data for table `fxTransfer`
|
|
963
|
+
--
|
|
964
|
+
|
|
965
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
966
|
+
LOCK TABLES `fxTransfer` WRITE;
|
|
967
|
+
/*!40000 ALTER TABLE `fxTransfer` DISABLE KEYS */;
|
|
968
|
+
/*!40000 ALTER TABLE `fxTransfer` ENABLE KEYS */;
|
|
969
|
+
UNLOCK TABLES;
|
|
970
|
+
COMMIT;
|
|
971
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
972
|
+
|
|
973
|
+
--
|
|
974
|
+
-- Table structure for table `fxTransferDuplicateCheck`
|
|
975
|
+
--
|
|
976
|
+
|
|
977
|
+
DROP TABLE IF EXISTS `fxTransferDuplicateCheck`;
|
|
978
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
979
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
980
|
+
CREATE TABLE `fxTransferDuplicateCheck` (
|
|
981
|
+
`commitRequestId` varchar(36) NOT NULL,
|
|
982
|
+
`hash` varchar(256) NOT NULL,
|
|
983
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
984
|
+
PRIMARY KEY (`commitRequestId`)
|
|
985
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
986
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
987
|
+
|
|
988
|
+
--
|
|
989
|
+
-- Dumping data for table `fxTransferDuplicateCheck`
|
|
990
|
+
--
|
|
991
|
+
|
|
992
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
993
|
+
LOCK TABLES `fxTransferDuplicateCheck` WRITE;
|
|
994
|
+
/*!40000 ALTER TABLE `fxTransferDuplicateCheck` DISABLE KEYS */;
|
|
995
|
+
/*!40000 ALTER TABLE `fxTransferDuplicateCheck` ENABLE KEYS */;
|
|
996
|
+
UNLOCK TABLES;
|
|
997
|
+
COMMIT;
|
|
998
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
999
|
+
|
|
1000
|
+
--
|
|
1001
|
+
-- Table structure for table `fxTransferError`
|
|
1002
|
+
--
|
|
1003
|
+
|
|
1004
|
+
DROP TABLE IF EXISTS `fxTransferError`;
|
|
1005
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1006
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1007
|
+
CREATE TABLE `fxTransferError` (
|
|
1008
|
+
`commitRequestId` varchar(36) NOT NULL,
|
|
1009
|
+
`fxTransferStateChangeId` bigint(20) unsigned NOT NULL,
|
|
1010
|
+
`errorCode` int(10) unsigned NOT NULL,
|
|
1011
|
+
`errorDescription` varchar(128) NOT NULL,
|
|
1012
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1013
|
+
PRIMARY KEY (`commitRequestId`),
|
|
1014
|
+
KEY `fxtransfererror_fxtransferstatechangeid_index` (`fxTransferStateChangeId`),
|
|
1015
|
+
CONSTRAINT `fxtransfererror_fxtransferstatechangeid_foreign` FOREIGN KEY (`fxTransferStateChangeId`) REFERENCES `fxTransferStateChange` (`fxTransferStateChangeId`)
|
|
1016
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1017
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1018
|
+
|
|
1019
|
+
--
|
|
1020
|
+
-- Dumping data for table `fxTransferError`
|
|
1021
|
+
--
|
|
1022
|
+
|
|
1023
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1024
|
+
LOCK TABLES `fxTransferError` WRITE;
|
|
1025
|
+
/*!40000 ALTER TABLE `fxTransferError` DISABLE KEYS */;
|
|
1026
|
+
/*!40000 ALTER TABLE `fxTransferError` ENABLE KEYS */;
|
|
1027
|
+
UNLOCK TABLES;
|
|
1028
|
+
COMMIT;
|
|
1029
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1030
|
+
|
|
1031
|
+
--
|
|
1032
|
+
-- Table structure for table `fxTransferErrorDuplicateCheck`
|
|
1033
|
+
--
|
|
1034
|
+
|
|
1035
|
+
DROP TABLE IF EXISTS `fxTransferErrorDuplicateCheck`;
|
|
1036
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1037
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1038
|
+
CREATE TABLE `fxTransferErrorDuplicateCheck` (
|
|
1039
|
+
`commitRequestId` varchar(36) NOT NULL,
|
|
1040
|
+
`hash` varchar(256) NOT NULL,
|
|
1041
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1042
|
+
PRIMARY KEY (`commitRequestId`)
|
|
1043
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1044
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1045
|
+
|
|
1046
|
+
--
|
|
1047
|
+
-- Dumping data for table `fxTransferErrorDuplicateCheck`
|
|
1048
|
+
--
|
|
1049
|
+
|
|
1050
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1051
|
+
LOCK TABLES `fxTransferErrorDuplicateCheck` WRITE;
|
|
1052
|
+
/*!40000 ALTER TABLE `fxTransferErrorDuplicateCheck` DISABLE KEYS */;
|
|
1053
|
+
/*!40000 ALTER TABLE `fxTransferErrorDuplicateCheck` ENABLE KEYS */;
|
|
1054
|
+
UNLOCK TABLES;
|
|
1055
|
+
COMMIT;
|
|
1056
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1057
|
+
|
|
1058
|
+
--
|
|
1059
|
+
-- Table structure for table `fxTransferExtension`
|
|
1060
|
+
--
|
|
1061
|
+
|
|
1062
|
+
DROP TABLE IF EXISTS `fxTransferExtension`;
|
|
1063
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1064
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1065
|
+
CREATE TABLE `fxTransferExtension` (
|
|
1066
|
+
`fxTransferExtensionId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
1067
|
+
`commitRequestId` varchar(36) NOT NULL,
|
|
1068
|
+
`isFulfilment` tinyint(1) NOT NULL DEFAULT 0,
|
|
1069
|
+
`isError` tinyint(1) NOT NULL DEFAULT 0,
|
|
1070
|
+
`key` varchar(128) NOT NULL,
|
|
1071
|
+
`value` text NOT NULL,
|
|
1072
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1073
|
+
PRIMARY KEY (`fxTransferExtensionId`),
|
|
1074
|
+
KEY `fxtransferextension_commitrequestid_index` (`commitRequestId`),
|
|
1075
|
+
CONSTRAINT `fxtransferextension_commitrequestid_foreign` FOREIGN KEY (`commitRequestId`) REFERENCES `fxTransfer` (`commitRequestId`)
|
|
1076
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1077
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1078
|
+
|
|
1079
|
+
--
|
|
1080
|
+
-- Dumping data for table `fxTransferExtension`
|
|
1081
|
+
--
|
|
1082
|
+
|
|
1083
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1084
|
+
LOCK TABLES `fxTransferExtension` WRITE;
|
|
1085
|
+
/*!40000 ALTER TABLE `fxTransferExtension` DISABLE KEYS */;
|
|
1086
|
+
/*!40000 ALTER TABLE `fxTransferExtension` ENABLE KEYS */;
|
|
1087
|
+
UNLOCK TABLES;
|
|
1088
|
+
COMMIT;
|
|
1089
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1090
|
+
|
|
1091
|
+
--
|
|
1092
|
+
-- Table structure for table `fxTransferForwarded`
|
|
1093
|
+
--
|
|
1094
|
+
|
|
1095
|
+
DROP TABLE IF EXISTS `fxTransferForwarded`;
|
|
1096
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1097
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1098
|
+
CREATE TABLE `fxTransferForwarded` (
|
|
1099
|
+
`fxTransferForwardedId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
1100
|
+
`commitRequestId` varchar(36) NOT NULL,
|
|
1101
|
+
`expirationDate` datetime NOT NULL,
|
|
1102
|
+
`attemptCount` int(11) NOT NULL DEFAULT 0,
|
|
1103
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1104
|
+
PRIMARY KEY (`fxTransferForwardedId`),
|
|
1105
|
+
UNIQUE KEY `fxtransferforwarded_commitrequestid_unique` (`commitRequestId`),
|
|
1106
|
+
KEY `fxtransferforwarded_expirationdate_index` (`expirationDate`),
|
|
1107
|
+
KEY `fxtransferforwarded_attemptcount_index` (`attemptCount`),
|
|
1108
|
+
CONSTRAINT `fxtransferforwarded_commitrequestid_foreign` FOREIGN KEY (`commitRequestId`) REFERENCES `fxTransfer` (`commitRequestId`)
|
|
1109
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1110
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1111
|
+
|
|
1112
|
+
--
|
|
1113
|
+
-- Dumping data for table `fxTransferForwarded`
|
|
1114
|
+
--
|
|
1115
|
+
|
|
1116
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1117
|
+
LOCK TABLES `fxTransferForwarded` WRITE;
|
|
1118
|
+
/*!40000 ALTER TABLE `fxTransferForwarded` DISABLE KEYS */;
|
|
1119
|
+
/*!40000 ALTER TABLE `fxTransferForwarded` ENABLE KEYS */;
|
|
1120
|
+
UNLOCK TABLES;
|
|
1121
|
+
COMMIT;
|
|
1122
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1123
|
+
|
|
1124
|
+
--
|
|
1125
|
+
-- Table structure for table `fxTransferFulfilment`
|
|
1126
|
+
--
|
|
1127
|
+
|
|
1128
|
+
DROP TABLE IF EXISTS `fxTransferFulfilment`;
|
|
1129
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1130
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1131
|
+
CREATE TABLE `fxTransferFulfilment` (
|
|
1132
|
+
`commitRequestId` varchar(36) NOT NULL,
|
|
1133
|
+
`ilpFulfilment` varchar(256) DEFAULT NULL,
|
|
1134
|
+
`completedDate` datetime NOT NULL,
|
|
1135
|
+
`isValid` tinyint(1) DEFAULT NULL,
|
|
1136
|
+
`settlementWindowId` bigint(20) unsigned DEFAULT NULL,
|
|
1137
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1138
|
+
PRIMARY KEY (`commitRequestId`),
|
|
1139
|
+
UNIQUE KEY `fxtransferfulfilment_commitrequestid_ilpfulfilment_unique` (`commitRequestId`,`ilpFulfilment`),
|
|
1140
|
+
KEY `fxtransferfulfilment_commitrequestid_index` (`commitRequestId`),
|
|
1141
|
+
KEY `fxtransferfulfilment_settlementwindowid_index` (`settlementWindowId`),
|
|
1142
|
+
CONSTRAINT `fxtransferfulfilment_commitrequestid_foreign` FOREIGN KEY (`commitRequestId`) REFERENCES `fxTransfer` (`commitRequestId`),
|
|
1143
|
+
CONSTRAINT `fxtransferfulfilment_settlementwindowid_foreign` FOREIGN KEY (`settlementWindowId`) REFERENCES `settlementWindow` (`settlementWindowId`)
|
|
1144
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1145
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1146
|
+
|
|
1147
|
+
--
|
|
1148
|
+
-- Dumping data for table `fxTransferFulfilment`
|
|
1149
|
+
--
|
|
1150
|
+
|
|
1151
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1152
|
+
LOCK TABLES `fxTransferFulfilment` WRITE;
|
|
1153
|
+
/*!40000 ALTER TABLE `fxTransferFulfilment` DISABLE KEYS */;
|
|
1154
|
+
/*!40000 ALTER TABLE `fxTransferFulfilment` ENABLE KEYS */;
|
|
1155
|
+
UNLOCK TABLES;
|
|
1156
|
+
COMMIT;
|
|
1157
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1158
|
+
|
|
1159
|
+
--
|
|
1160
|
+
-- Table structure for table `fxTransferFulfilmentDuplicateCheck`
|
|
1161
|
+
--
|
|
1162
|
+
|
|
1163
|
+
DROP TABLE IF EXISTS `fxTransferFulfilmentDuplicateCheck`;
|
|
1164
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1165
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1166
|
+
CREATE TABLE `fxTransferFulfilmentDuplicateCheck` (
|
|
1167
|
+
`commitRequestId` varchar(36) NOT NULL,
|
|
1168
|
+
`hash` varchar(256) DEFAULT NULL,
|
|
1169
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1170
|
+
PRIMARY KEY (`commitRequestId`),
|
|
1171
|
+
KEY `fxtransferfulfilmentduplicatecheck_commitrequestid_index` (`commitRequestId`),
|
|
1172
|
+
CONSTRAINT `fxtransferfulfilmentduplicatecheck_commitrequestid_foreign` FOREIGN KEY (`commitRequestId`) REFERENCES `fxTransfer` (`commitRequestId`)
|
|
1173
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1174
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1175
|
+
|
|
1176
|
+
--
|
|
1177
|
+
-- Dumping data for table `fxTransferFulfilmentDuplicateCheck`
|
|
1178
|
+
--
|
|
1179
|
+
|
|
1180
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1181
|
+
LOCK TABLES `fxTransferFulfilmentDuplicateCheck` WRITE;
|
|
1182
|
+
/*!40000 ALTER TABLE `fxTransferFulfilmentDuplicateCheck` DISABLE KEYS */;
|
|
1183
|
+
/*!40000 ALTER TABLE `fxTransferFulfilmentDuplicateCheck` ENABLE KEYS */;
|
|
1184
|
+
UNLOCK TABLES;
|
|
1185
|
+
COMMIT;
|
|
1186
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1187
|
+
|
|
1188
|
+
--
|
|
1189
|
+
-- Table structure for table `fxTransferParticipant`
|
|
1190
|
+
--
|
|
1191
|
+
|
|
1192
|
+
DROP TABLE IF EXISTS `fxTransferParticipant`;
|
|
1193
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1194
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1195
|
+
CREATE TABLE `fxTransferParticipant` (
|
|
1196
|
+
`fxTransferParticipantId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
1197
|
+
`commitRequestId` varchar(36) NOT NULL,
|
|
1198
|
+
`participantCurrencyId` int(10) unsigned DEFAULT NULL,
|
|
1199
|
+
`transferParticipantRoleTypeId` int(10) unsigned NOT NULL,
|
|
1200
|
+
`ledgerEntryTypeId` int(10) unsigned NOT NULL,
|
|
1201
|
+
`fxParticipantCurrencyTypeId` int(10) unsigned DEFAULT NULL,
|
|
1202
|
+
`amount` decimal(18,4) NOT NULL,
|
|
1203
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1204
|
+
`participantId` int(10) unsigned NOT NULL,
|
|
1205
|
+
`externalParticipantId` bigint(20) unsigned DEFAULT NULL,
|
|
1206
|
+
PRIMARY KEY (`fxTransferParticipantId`),
|
|
1207
|
+
KEY `fxtransferparticipant_fxparticipantcurrencytypeid_foreign` (`fxParticipantCurrencyTypeId`),
|
|
1208
|
+
KEY `fxtransferparticipant_commitrequestid_index` (`commitRequestId`),
|
|
1209
|
+
KEY `fxtransferparticipant_participantcurrencyid_index` (`participantCurrencyId`),
|
|
1210
|
+
KEY `fxtransferparticipant_transferparticipantroletypeid_index` (`transferParticipantRoleTypeId`),
|
|
1211
|
+
KEY `fxtransferparticipant_ledgerentrytypeid_index` (`ledgerEntryTypeId`),
|
|
1212
|
+
KEY `fxtransferparticipant_participantid_index` (`participantId`),
|
|
1213
|
+
KEY `fxtransferparticipant_externalparticipantid_index` (`externalParticipantId`),
|
|
1214
|
+
CONSTRAINT `fxtransferparticipant_commitrequestid_foreign` FOREIGN KEY (`commitRequestId`) REFERENCES `fxTransfer` (`commitRequestId`),
|
|
1215
|
+
CONSTRAINT `fxtransferparticipant_externalparticipantid_foreign` FOREIGN KEY (`externalParticipantId`) REFERENCES `externalParticipant` (`externalParticipantId`),
|
|
1216
|
+
CONSTRAINT `fxtransferparticipant_fxparticipantcurrencytypeid_foreign` FOREIGN KEY (`fxParticipantCurrencyTypeId`) REFERENCES `fxParticipantCurrencyType` (`fxParticipantCurrencyTypeId`),
|
|
1217
|
+
CONSTRAINT `fxtransferparticipant_ledgerentrytypeid_foreign` FOREIGN KEY (`ledgerEntryTypeId`) REFERENCES `ledgerEntryType` (`ledgerEntryTypeId`),
|
|
1218
|
+
CONSTRAINT `fxtransferparticipant_participantcurrencyid_foreign` FOREIGN KEY (`participantCurrencyId`) REFERENCES `participantCurrency` (`participantCurrencyId`),
|
|
1219
|
+
CONSTRAINT `fxtransferparticipant_transferparticipantroletypeid_foreign` FOREIGN KEY (`transferParticipantRoleTypeId`) REFERENCES `transferParticipantRoleType` (`transferParticipantRoleTypeId`)
|
|
1220
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1221
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1222
|
+
|
|
1223
|
+
--
|
|
1224
|
+
-- Dumping data for table `fxTransferParticipant`
|
|
1225
|
+
--
|
|
1226
|
+
|
|
1227
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1228
|
+
LOCK TABLES `fxTransferParticipant` WRITE;
|
|
1229
|
+
/*!40000 ALTER TABLE `fxTransferParticipant` DISABLE KEYS */;
|
|
1230
|
+
/*!40000 ALTER TABLE `fxTransferParticipant` ENABLE KEYS */;
|
|
1231
|
+
UNLOCK TABLES;
|
|
1232
|
+
COMMIT;
|
|
1233
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1234
|
+
|
|
1235
|
+
--
|
|
1236
|
+
-- Table structure for table `fxTransferStateChange`
|
|
1237
|
+
--
|
|
1238
|
+
|
|
1239
|
+
DROP TABLE IF EXISTS `fxTransferStateChange`;
|
|
1240
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1241
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1242
|
+
CREATE TABLE `fxTransferStateChange` (
|
|
1243
|
+
`fxTransferStateChangeId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
1244
|
+
`commitRequestId` varchar(36) NOT NULL,
|
|
1245
|
+
`transferStateId` varchar(50) NOT NULL,
|
|
1246
|
+
`reason` varchar(512) DEFAULT NULL,
|
|
1247
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1248
|
+
PRIMARY KEY (`fxTransferStateChangeId`),
|
|
1249
|
+
KEY `fxtransferstatechange_commitrequestid_index` (`commitRequestId`),
|
|
1250
|
+
KEY `fxtransferstatechange_transferstateid_index` (`transferStateId`),
|
|
1251
|
+
CONSTRAINT `fxtransferstatechange_commitrequestid_foreign` FOREIGN KEY (`commitRequestId`) REFERENCES `fxTransfer` (`commitRequestId`),
|
|
1252
|
+
CONSTRAINT `fxtransferstatechange_transferstateid_foreign` FOREIGN KEY (`transferStateId`) REFERENCES `transferState` (`transferStateId`)
|
|
1253
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1254
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1255
|
+
|
|
1256
|
+
--
|
|
1257
|
+
-- Dumping data for table `fxTransferStateChange`
|
|
1258
|
+
--
|
|
1259
|
+
|
|
1260
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1261
|
+
LOCK TABLES `fxTransferStateChange` WRITE;
|
|
1262
|
+
/*!40000 ALTER TABLE `fxTransferStateChange` DISABLE KEYS */;
|
|
1263
|
+
/*!40000 ALTER TABLE `fxTransferStateChange` ENABLE KEYS */;
|
|
1264
|
+
UNLOCK TABLES;
|
|
1265
|
+
COMMIT;
|
|
1266
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1267
|
+
|
|
1268
|
+
--
|
|
1269
|
+
-- Table structure for table `fxTransferTimeout`
|
|
1270
|
+
--
|
|
1271
|
+
|
|
1272
|
+
DROP TABLE IF EXISTS `fxTransferTimeout`;
|
|
1273
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1274
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1275
|
+
CREATE TABLE `fxTransferTimeout` (
|
|
1276
|
+
`fxTransferTimeoutId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
1277
|
+
`commitRequestId` varchar(36) NOT NULL,
|
|
1278
|
+
`expirationDate` datetime NOT NULL,
|
|
1279
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1280
|
+
PRIMARY KEY (`fxTransferTimeoutId`),
|
|
1281
|
+
UNIQUE KEY `fxtransfertimeout_commitrequestid_unique` (`commitRequestId`),
|
|
1282
|
+
KEY `fxtransfertimeout_expirationdate_index` (`expirationDate`),
|
|
1283
|
+
CONSTRAINT `fxtransfertimeout_commitrequestid_foreign` FOREIGN KEY (`commitRequestId`) REFERENCES `fxTransfer` (`commitRequestId`)
|
|
1284
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1285
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1286
|
+
|
|
1287
|
+
--
|
|
1288
|
+
-- Dumping data for table `fxTransferTimeout`
|
|
1289
|
+
--
|
|
1290
|
+
|
|
1291
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1292
|
+
LOCK TABLES `fxTransferTimeout` WRITE;
|
|
1293
|
+
/*!40000 ALTER TABLE `fxTransferTimeout` DISABLE KEYS */;
|
|
1294
|
+
/*!40000 ALTER TABLE `fxTransferTimeout` ENABLE KEYS */;
|
|
1295
|
+
UNLOCK TABLES;
|
|
1296
|
+
COMMIT;
|
|
1297
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1298
|
+
|
|
1299
|
+
--
|
|
1300
|
+
-- Table structure for table `fxTransferType`
|
|
1301
|
+
--
|
|
1302
|
+
|
|
1303
|
+
DROP TABLE IF EXISTS `fxTransferType`;
|
|
1304
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1305
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1306
|
+
CREATE TABLE `fxTransferType` (
|
|
1307
|
+
`fxTransferTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
1308
|
+
`name` varchar(50) NOT NULL,
|
|
1309
|
+
`description` varchar(512) DEFAULT NULL,
|
|
1310
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1311
|
+
PRIMARY KEY (`fxTransferTypeId`),
|
|
1312
|
+
UNIQUE KEY `fxtransfertype_name_unique` (`name`)
|
|
1313
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1314
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1315
|
+
|
|
1316
|
+
--
|
|
1317
|
+
-- Dumping data for table `fxTransferType`
|
|
1318
|
+
--
|
|
1319
|
+
|
|
1320
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1321
|
+
LOCK TABLES `fxTransferType` WRITE;
|
|
1322
|
+
/*!40000 ALTER TABLE `fxTransferType` DISABLE KEYS */;
|
|
1323
|
+
/*!40000 ALTER TABLE `fxTransferType` ENABLE KEYS */;
|
|
1324
|
+
UNLOCK TABLES;
|
|
1325
|
+
COMMIT;
|
|
1326
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1327
|
+
|
|
1328
|
+
--
|
|
1329
|
+
-- Table structure for table `fxWatchList`
|
|
1330
|
+
--
|
|
1331
|
+
|
|
1332
|
+
DROP TABLE IF EXISTS `fxWatchList`;
|
|
1333
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1334
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1335
|
+
CREATE TABLE `fxWatchList` (
|
|
1336
|
+
`fxWatchListId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
1337
|
+
`commitRequestId` varchar(36) NOT NULL,
|
|
1338
|
+
`determiningTransferId` varchar(36) NOT NULL,
|
|
1339
|
+
`fxTransferTypeId` int(10) unsigned NOT NULL,
|
|
1340
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1341
|
+
PRIMARY KEY (`fxWatchListId`),
|
|
1342
|
+
KEY `fxwatchlist_fxtransfertypeid_foreign` (`fxTransferTypeId`),
|
|
1343
|
+
KEY `fxwatchlist_commitrequestid_index` (`commitRequestId`),
|
|
1344
|
+
KEY `fxwatchlist_determiningtransferid_index` (`determiningTransferId`),
|
|
1345
|
+
CONSTRAINT `fxwatchlist_commitrequestid_foreign` FOREIGN KEY (`commitRequestId`) REFERENCES `fxTransfer` (`commitRequestId`),
|
|
1346
|
+
CONSTRAINT `fxwatchlist_fxtransfertypeid_foreign` FOREIGN KEY (`fxTransferTypeId`) REFERENCES `fxTransferType` (`fxTransferTypeId`)
|
|
1347
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1348
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1349
|
+
|
|
1350
|
+
--
|
|
1351
|
+
-- Dumping data for table `fxWatchList`
|
|
1352
|
+
--
|
|
1353
|
+
|
|
1354
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1355
|
+
LOCK TABLES `fxWatchList` WRITE;
|
|
1356
|
+
/*!40000 ALTER TABLE `fxWatchList` DISABLE KEYS */;
|
|
1357
|
+
/*!40000 ALTER TABLE `fxWatchList` ENABLE KEYS */;
|
|
1358
|
+
UNLOCK TABLES;
|
|
1359
|
+
COMMIT;
|
|
1360
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1361
|
+
|
|
1362
|
+
--
|
|
1363
|
+
-- Table structure for table `geoCode`
|
|
1364
|
+
--
|
|
1365
|
+
|
|
1366
|
+
DROP TABLE IF EXISTS `geoCode`;
|
|
1367
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1368
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1369
|
+
CREATE TABLE `geoCode` (
|
|
1370
|
+
`geoCodeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
1371
|
+
`quotePartyId` bigint(20) unsigned NOT NULL COMMENT 'Optionally the GeoCode for the Payer/Payee may have been provided. If the Quote Response has the GeoCode for the Payee, an additional row is added',
|
|
1372
|
+
`latitude` varchar(50) NOT NULL COMMENT 'Latitude of the initiating Party',
|
|
1373
|
+
`longitude` varchar(50) NOT NULL COMMENT 'Longitude of the initiating Party',
|
|
1374
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
1375
|
+
PRIMARY KEY (`geoCodeId`),
|
|
1376
|
+
KEY `geocode_quotepartyid_foreign` (`quotePartyId`),
|
|
1377
|
+
CONSTRAINT `geocode_quotepartyid_foreign` FOREIGN KEY (`quotePartyId`) REFERENCES `quoteParty` (`quotePartyId`)
|
|
1378
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1379
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1380
|
+
|
|
1381
|
+
--
|
|
1382
|
+
-- Dumping data for table `geoCode`
|
|
1383
|
+
--
|
|
1384
|
+
|
|
1385
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1386
|
+
LOCK TABLES `geoCode` WRITE;
|
|
1387
|
+
/*!40000 ALTER TABLE `geoCode` DISABLE KEYS */;
|
|
1388
|
+
/*!40000 ALTER TABLE `geoCode` ENABLE KEYS */;
|
|
1389
|
+
UNLOCK TABLES;
|
|
1390
|
+
COMMIT;
|
|
1391
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1392
|
+
|
|
1393
|
+
--
|
|
1394
|
+
-- Table structure for table `ilpPacket`
|
|
1395
|
+
--
|
|
1396
|
+
|
|
1397
|
+
DROP TABLE IF EXISTS `ilpPacket`;
|
|
1398
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1399
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1400
|
+
CREATE TABLE `ilpPacket` (
|
|
1401
|
+
`transferId` varchar(36) NOT NULL,
|
|
1402
|
+
`value` text NOT NULL,
|
|
1403
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1404
|
+
PRIMARY KEY (`transferId`),
|
|
1405
|
+
CONSTRAINT `ilppacket_transferid_foreign` FOREIGN KEY (`transferId`) REFERENCES `transfer` (`transferId`)
|
|
1406
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1407
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1408
|
+
|
|
1409
|
+
--
|
|
1410
|
+
-- Dumping data for table `ilpPacket`
|
|
1411
|
+
--
|
|
1412
|
+
|
|
1413
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1414
|
+
LOCK TABLES `ilpPacket` WRITE;
|
|
1415
|
+
/*!40000 ALTER TABLE `ilpPacket` DISABLE KEYS */;
|
|
1416
|
+
/*!40000 ALTER TABLE `ilpPacket` ENABLE KEYS */;
|
|
1417
|
+
UNLOCK TABLES;
|
|
1418
|
+
COMMIT;
|
|
1419
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1420
|
+
|
|
1421
|
+
--
|
|
1422
|
+
-- Table structure for table `ledgerAccountType`
|
|
1423
|
+
--
|
|
1424
|
+
|
|
1425
|
+
DROP TABLE IF EXISTS `ledgerAccountType`;
|
|
1426
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1427
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1428
|
+
CREATE TABLE `ledgerAccountType` (
|
|
1429
|
+
`ledgerAccountTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
1430
|
+
`name` varchar(50) NOT NULL,
|
|
1431
|
+
`description` varchar(512) DEFAULT NULL,
|
|
1432
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
1433
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1434
|
+
`isSettleable` tinyint(1) NOT NULL DEFAULT 0,
|
|
1435
|
+
PRIMARY KEY (`ledgerAccountTypeId`),
|
|
1436
|
+
UNIQUE KEY `ledgeraccounttype_name_unique` (`name`)
|
|
1437
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1438
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1439
|
+
|
|
1440
|
+
--
|
|
1441
|
+
-- Dumping data for table `ledgerAccountType`
|
|
1442
|
+
--
|
|
1443
|
+
|
|
1444
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1445
|
+
LOCK TABLES `ledgerAccountType` WRITE;
|
|
1446
|
+
/*!40000 ALTER TABLE `ledgerAccountType` DISABLE KEYS */;
|
|
1447
|
+
/*!40000 ALTER TABLE `ledgerAccountType` ENABLE KEYS */;
|
|
1448
|
+
UNLOCK TABLES;
|
|
1449
|
+
COMMIT;
|
|
1450
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1451
|
+
|
|
1452
|
+
--
|
|
1453
|
+
-- Table structure for table `ledgerEntryType`
|
|
1454
|
+
--
|
|
1455
|
+
|
|
1456
|
+
DROP TABLE IF EXISTS `ledgerEntryType`;
|
|
1457
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1458
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1459
|
+
CREATE TABLE `ledgerEntryType` (
|
|
1460
|
+
`ledgerEntryTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
1461
|
+
`name` varchar(50) NOT NULL,
|
|
1462
|
+
`description` varchar(512) DEFAULT NULL,
|
|
1463
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
1464
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1465
|
+
`ledgerAccountTypeId` int(10) unsigned DEFAULT NULL,
|
|
1466
|
+
PRIMARY KEY (`ledgerEntryTypeId`),
|
|
1467
|
+
UNIQUE KEY `ledgerentrytype_name_unique` (`name`),
|
|
1468
|
+
KEY `ledgerentrytype_ledgeraccounttypeid_foreign` (`ledgerAccountTypeId`),
|
|
1469
|
+
CONSTRAINT `ledgerentrytype_ledgeraccounttypeid_foreign` FOREIGN KEY (`ledgerAccountTypeId`) REFERENCES `ledgerAccountType` (`ledgerAccountTypeId`)
|
|
1470
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1471
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1472
|
+
|
|
1473
|
+
--
|
|
1474
|
+
-- Dumping data for table `ledgerEntryType`
|
|
1475
|
+
--
|
|
1476
|
+
|
|
1477
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1478
|
+
LOCK TABLES `ledgerEntryType` WRITE;
|
|
1479
|
+
/*!40000 ALTER TABLE `ledgerEntryType` DISABLE KEYS */;
|
|
1480
|
+
/*!40000 ALTER TABLE `ledgerEntryType` ENABLE KEYS */;
|
|
1481
|
+
UNLOCK TABLES;
|
|
1482
|
+
COMMIT;
|
|
1483
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1484
|
+
|
|
1485
|
+
--
|
|
1486
|
+
-- Table structure for table `migration`
|
|
1487
|
+
--
|
|
1488
|
+
|
|
1489
|
+
DROP TABLE IF EXISTS `migration`;
|
|
1490
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1491
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1492
|
+
CREATE TABLE `migration` (
|
|
1493
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
1494
|
+
`name` varchar(255) DEFAULT NULL,
|
|
1495
|
+
`batch` int(11) DEFAULT NULL,
|
|
1496
|
+
`migration_time` timestamp NULL DEFAULT NULL,
|
|
1497
|
+
PRIMARY KEY (`id`)
|
|
1498
|
+
) ENGINE=InnoDB AUTO_INCREMENT=223 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1499
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1500
|
+
|
|
1501
|
+
--
|
|
1502
|
+
-- Dumping data for table `migration`
|
|
1503
|
+
--
|
|
1504
|
+
|
|
1505
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1506
|
+
LOCK TABLES `migration` WRITE;
|
|
1507
|
+
/*!40000 ALTER TABLE `migration` DISABLE KEYS */;
|
|
1508
|
+
INSERT INTO `migration` VALUES
|
|
1509
|
+
(1,'100100_event.js',1,'2026-06-10 12:35:54'),
|
|
1510
|
+
(2,'110100_contactType.js',1,'2026-06-10 12:35:54'),
|
|
1511
|
+
(3,'110101_contactType-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1512
|
+
(4,'110200_currency.js',1,'2026-06-10 12:35:54'),
|
|
1513
|
+
(5,'110201_currency-scale.js',1,'2026-06-10 12:35:54'),
|
|
1514
|
+
(6,'110300_endpointType.js',1,'2026-06-10 12:35:54'),
|
|
1515
|
+
(7,'110301_endpointType-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1516
|
+
(8,'110400_ledgerEntryType.js',1,'2026-06-10 12:35:54'),
|
|
1517
|
+
(9,'110401_ledgerEntryType-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1518
|
+
(10,'110450_ledgerAccountType.js',1,'2026-06-10 12:35:54'),
|
|
1519
|
+
(11,'110451_ledgerAccountType-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1520
|
+
(12,'110500_participantLimitType.js',1,'2026-06-10 12:35:54'),
|
|
1521
|
+
(13,'110501_participantLimitType-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1522
|
+
(14,'110600_transferParticipantRoleType.js',1,'2026-06-10 12:35:54'),
|
|
1523
|
+
(15,'110601_transferParticipantRoleType-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1524
|
+
(16,'110700_transferState.js',1,'2026-06-10 12:35:54'),
|
|
1525
|
+
(17,'110800_settlementWindowState.js',1,'2026-06-10 12:35:54'),
|
|
1526
|
+
(18,'110900_settlementState.js',1,'2026-06-10 12:35:54'),
|
|
1527
|
+
(19,'111000_amountType.js',1,'2026-06-10 12:35:54'),
|
|
1528
|
+
(20,'111001_amountType-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1529
|
+
(21,'111100_balanceOfPayments.js',1,'2026-06-10 12:35:54'),
|
|
1530
|
+
(22,'111101_balanceOfPayments-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1531
|
+
(23,'111200_partyIdentifierType.js',1,'2026-06-10 12:35:54'),
|
|
1532
|
+
(24,'111201_partyIdentifierType-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1533
|
+
(25,'111300_partyType.js',1,'2026-06-10 12:35:54'),
|
|
1534
|
+
(26,'111301_partyType-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1535
|
+
(27,'111400_quoteDuplicateCheck.js',1,'2026-06-10 12:35:54'),
|
|
1536
|
+
(28,'111500_transactionInitiator.js',1,'2026-06-10 12:35:54'),
|
|
1537
|
+
(29,'111501_transactionInitiator-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1538
|
+
(30,'111600_transactionInitiatorType.js',1,'2026-06-10 12:35:54'),
|
|
1539
|
+
(31,'111601_transactionInitiatorType-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1540
|
+
(32,'111700_settlementDelay.js',1,'2026-06-10 12:35:54'),
|
|
1541
|
+
(33,'111701_settlementDelay-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1542
|
+
(34,'111800_settlementInterchange.js',1,'2026-06-10 12:35:54'),
|
|
1543
|
+
(35,'111801_settlementInterchange-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1544
|
+
(36,'111900_settlementGranularity.js',1,'2026-06-10 12:35:54'),
|
|
1545
|
+
(37,'111901_settlementGranularity-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1546
|
+
(38,'112000_bulkTransferState.js',1,'2026-06-10 12:35:54'),
|
|
1547
|
+
(39,'112100_bulkProcessingState.js',1,'2026-06-10 12:35:54'),
|
|
1548
|
+
(40,'112101_bulkProcessingState-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1549
|
+
(41,'200100_participant.js',1,'2026-06-10 12:35:54'),
|
|
1550
|
+
(42,'200101_participant-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1551
|
+
(43,'200200_participantContact.js',1,'2026-06-10 12:35:54'),
|
|
1552
|
+
(44,'200201_participantContact-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1553
|
+
(45,'200300_participantEndpoint.js',1,'2026-06-10 12:35:54'),
|
|
1554
|
+
(46,'200301_participantEndpoint-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1555
|
+
(47,'200400_participantParty.js',1,'2026-06-10 12:35:54'),
|
|
1556
|
+
(48,'200401_participantParty-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1557
|
+
(49,'200600_token.js',1,'2026-06-10 12:35:54'),
|
|
1558
|
+
(50,'200601_token-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1559
|
+
(51,'300100_transferDuplicateCheck.js',1,'2026-06-10 12:35:54'),
|
|
1560
|
+
(52,'300150_bulkTransferDuplicateCheck.js',1,'2026-06-10 12:35:54'),
|
|
1561
|
+
(53,'300200_transfer.js',1,'2026-06-10 12:35:54'),
|
|
1562
|
+
(54,'300201_transfer-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1563
|
+
(55,'300202_transfer-decimal184.js',1,'2026-06-10 12:35:54'),
|
|
1564
|
+
(56,'300250_bulkTransfer.js',1,'2026-06-10 12:35:54'),
|
|
1565
|
+
(57,'300251_bulkTransfer-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1566
|
+
(58,'300275_bulkTransferAssociation.js',1,'2026-06-10 12:35:54'),
|
|
1567
|
+
(59,'300276_bulkTransferAssociation-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1568
|
+
(60,'300300_ilpPacket.js',1,'2026-06-10 12:35:54'),
|
|
1569
|
+
(61,'300400_transferStateChange.js',1,'2026-06-10 12:35:54'),
|
|
1570
|
+
(62,'300401_transferStateChange-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1571
|
+
(63,'300450_bulkTransferStateChange.js',1,'2026-06-10 12:35:54'),
|
|
1572
|
+
(64,'300451_bulkTransferStateChange-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1573
|
+
(65,'300500_segment.js',1,'2026-06-10 12:35:54'),
|
|
1574
|
+
(66,'300501_segment-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1575
|
+
(67,'310100_participantCurrency.js',1,'2026-06-10 12:35:54'),
|
|
1576
|
+
(68,'310101_participantCurrency-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1577
|
+
(69,'310200_transferParticipant.js',1,'2026-06-10 12:35:54'),
|
|
1578
|
+
(70,'310201_transferParticipant-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1579
|
+
(71,'310202_transferParticipant-decimal184.js',1,'2026-06-10 12:35:54'),
|
|
1580
|
+
(72,'310203_transferParticipant-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1581
|
+
(73,'310204_transferParticipant-participantId.js',1,'2026-06-10 12:35:54'),
|
|
1582
|
+
(74,'310300_participantPosition.js',1,'2026-06-10 12:35:54'),
|
|
1583
|
+
(75,'310301_participantPosition-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1584
|
+
(76,'310302_participantPosition-decimal184.js',1,'2026-06-10 12:35:54'),
|
|
1585
|
+
(77,'310400_participantPositionChange.js',1,'2026-06-10 12:35:54'),
|
|
1586
|
+
(78,'310401_participantPositionChange-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1587
|
+
(79,'310402_participantPositionChange-decimal184.js',1,'2026-06-10 12:35:54'),
|
|
1588
|
+
(80,'310403_participantPositionChange-participantCurrencyId.js',1,'2026-06-10 12:35:54'),
|
|
1589
|
+
(81,'310404_participantPositionChange-change.js',1,'2026-06-10 12:35:54'),
|
|
1590
|
+
(82,'310405_participantPositionChange-positionChange.js',1,'2026-06-10 12:35:54'),
|
|
1591
|
+
(83,'310406_participantPositionChange-positionChange-revert.js',1,'2026-06-10 12:35:54'),
|
|
1592
|
+
(84,'310500_participantLimit.js',1,'2026-06-10 12:35:54'),
|
|
1593
|
+
(85,'310501_participantLimit-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1594
|
+
(86,'310502_participantLimit-decimal184.js',1,'2026-06-10 12:35:54'),
|
|
1595
|
+
(87,'310503_participantLimit-indexes-composite.js',1,'2026-06-10 12:35:54'),
|
|
1596
|
+
(88,'400100_settlementWindow.js',1,'2026-06-10 12:35:54'),
|
|
1597
|
+
(89,'400200_settlement.js',1,'2026-06-10 12:35:54'),
|
|
1598
|
+
(90,'400300_settlementSettlementWindow.js',1,'2026-06-10 12:35:54'),
|
|
1599
|
+
(91,'400301_settlementSettlementWindow-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1600
|
+
(92,'400400_settlementWindowStateChange.js',1,'2026-06-10 12:35:54'),
|
|
1601
|
+
(93,'400401_settlmentWindowStateChange-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1602
|
+
(94,'400500_settlementTransferParticipant.js',1,'2026-06-10 12:35:54'),
|
|
1603
|
+
(95,'400501_settlementTransferParticipant-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1604
|
+
(96,'400502_settlementTransferParticipant-decimal184.js',1,'2026-06-10 12:35:54'),
|
|
1605
|
+
(97,'400600_settlementParticipantCurrency.js',1,'2026-06-10 12:35:54'),
|
|
1606
|
+
(98,'400601_settlementParticipantCurrency-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1607
|
+
(99,'400602_settlementParticipantCurrency-decimal184.js',1,'2026-06-10 12:35:54'),
|
|
1608
|
+
(100,'400700_settlementParticipantCurrencyStateChange.js',1,'2026-06-10 12:35:54'),
|
|
1609
|
+
(101,'400701_settlementParticipantCurrencyStateChange-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1610
|
+
(102,'400800_settlementStateChange.js',1,'2026-06-10 12:35:54'),
|
|
1611
|
+
(103,'400801_settlementStateChange-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1612
|
+
(104,'400900_settlementWindowContent.js',1,'2026-06-10 12:35:54'),
|
|
1613
|
+
(105,'401000_settlementWindowContentStateChange.js',1,'2026-06-10 12:35:54'),
|
|
1614
|
+
(106,'401001_settlementWindowContentStateChange-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1615
|
+
(107,'401002_settlementWindowContent-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1616
|
+
(108,'401200_settlementContentAggregation.js',1,'2026-06-10 12:35:54'),
|
|
1617
|
+
(109,'401201_settlementContentAggregation-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1618
|
+
(110,'401300_settlementModel.js',1,'2026-06-10 12:35:54'),
|
|
1619
|
+
(111,'401301_settlementModel-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1620
|
+
(112,'410100_transferFulfilmentDuplicateCheck.js',1,'2026-06-10 12:35:54'),
|
|
1621
|
+
(113,'410101_transferFulfilmentDuplicateCheck-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1622
|
+
(114,'410102_transferFulfilmentDuplicateCheck-dropForeignTransferId.js',1,'2026-06-10 12:35:54'),
|
|
1623
|
+
(115,'410103_transferFulfilmentDuplicateCheck-hashNullable.js',1,'2026-06-10 12:35:54'),
|
|
1624
|
+
(116,'410200_transferFulfilment.js',1,'2026-06-10 12:35:54'),
|
|
1625
|
+
(117,'410201_transferFulfilment-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1626
|
+
(118,'410202_transferFulfilment-ilpFulfilment.js',1,'2026-06-10 12:35:54'),
|
|
1627
|
+
(119,'410203_transferFulfilment-foreignTransferFulfilmentId.js',1,'2026-06-10 12:35:54'),
|
|
1628
|
+
(120,'410240_bulkTransferFulfilmentDuplicateCheck.js',1,'2026-06-10 12:35:54'),
|
|
1629
|
+
(121,'410250_bulkTransferFulfilment.js',1,'2026-06-10 12:35:54'),
|
|
1630
|
+
(122,'410300_transferExtension.js',1,'2026-06-10 12:35:54'),
|
|
1631
|
+
(123,'410301_transferExtension-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1632
|
+
(124,'410302_transferExtension-transferErrorId.js',1,'2026-06-10 12:35:54'),
|
|
1633
|
+
(125,'410350_bulkTransferExtension.js',1,'2026-06-10 12:35:54'),
|
|
1634
|
+
(126,'410351_bulkTransferExtension-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1635
|
+
(127,'410400_transferTimeout.js',1,'2026-06-10 12:35:54'),
|
|
1636
|
+
(128,'410401_transferTimeout-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1637
|
+
(129,'410450_transferErrorDuplicateCheck.js',1,'2026-06-10 12:35:54'),
|
|
1638
|
+
(130,'410500_transferError.js',1,'2026-06-10 12:35:54'),
|
|
1639
|
+
(131,'410501_transferError-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1640
|
+
(132,'410502_transferError-foreignTransferErrorDuplicateCheckId.js',1,'2026-06-10 12:35:54'),
|
|
1641
|
+
(133,'410550_bulkTransferError.js',1,'2026-06-10 12:35:54'),
|
|
1642
|
+
(134,'410551_bulkTransferError-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1643
|
+
(135,'410600_expiringTransfer.js',1,'2026-06-10 12:35:54'),
|
|
1644
|
+
(136,'410601_expiringTransfer-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1645
|
+
(137,'500100_transactionReference.js',1,'2026-06-10 12:35:54'),
|
|
1646
|
+
(138,'500101_transactionReference-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1647
|
+
(139,'500200_transactionScenario.js',1,'2026-06-10 12:35:54'),
|
|
1648
|
+
(140,'500201_transactionScenario-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1649
|
+
(141,'500300_transactionSubScenario.js',1,'2026-06-10 12:35:54'),
|
|
1650
|
+
(142,'500400_quote.js',1,'2026-06-10 12:35:54'),
|
|
1651
|
+
(143,'500401_quote-hotfix-2719.js',1,'2026-06-10 12:35:54'),
|
|
1652
|
+
(144,'500500_quoteParty.js',1,'2026-06-10 12:35:54'),
|
|
1653
|
+
(145,'500501_feature-fixSubIdRef.js',1,'2026-06-10 12:35:54'),
|
|
1654
|
+
(146,'500600_party.js',1,'2026-06-10 12:35:54'),
|
|
1655
|
+
(147,'500601_party-2480.js',1,'2026-06-10 12:35:54'),
|
|
1656
|
+
(148,'500700_quoteResponse.js',1,'2026-06-10 12:35:54'),
|
|
1657
|
+
(149,'500800_quoteResponseIlpPacket.js',1,'2026-06-10 12:35:54'),
|
|
1658
|
+
(150,'500900_geoCode.js',1,'2026-06-10 12:35:54'),
|
|
1659
|
+
(151,'501000_quoteExtension.js',1,'2026-06-10 12:35:54'),
|
|
1660
|
+
(152,'501001_quoteExtension-quote-service-174.js',1,'2026-06-10 12:35:54'),
|
|
1661
|
+
(153,'501002_quoteExtension-2522.js',1,'2026-06-10 12:35:54'),
|
|
1662
|
+
(154,'501100_quoteResponseDuplicateCheck.js',1,'2026-06-10 12:35:54'),
|
|
1663
|
+
(155,'501200_quoteError.js',1,'2026-06-10 12:35:54'),
|
|
1664
|
+
(156,'501300_transferRules.js',1,'2026-06-10 12:35:54'),
|
|
1665
|
+
(157,'600010_fxTransferType.js',1,'2026-06-10 12:35:54'),
|
|
1666
|
+
(158,'600011_fxTransferType-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1667
|
+
(159,'600012_fxParticipantCurrencyType.js',1,'2026-06-10 12:35:54'),
|
|
1668
|
+
(160,'600013_fxParticipantCurrencyType-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1669
|
+
(161,'600100_fxTransferDuplicateCheck.js',1,'2026-06-10 12:35:54'),
|
|
1670
|
+
(162,'600110_fxTransferErrorDuplicateCheck.js.js',1,'2026-06-10 12:35:54'),
|
|
1671
|
+
(163,'600200_fxTransfer.js',1,'2026-06-10 12:35:54'),
|
|
1672
|
+
(164,'600201_fxTransfer-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1673
|
+
(165,'600400_fxTransferStateChange.js',1,'2026-06-10 12:35:54'),
|
|
1674
|
+
(166,'600401_fxTransferStateChange-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1675
|
+
(167,'600501_fxWatchList.js',1,'2026-06-10 12:35:54'),
|
|
1676
|
+
(168,'600502_fxWatchList-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1677
|
+
(169,'600600_fxTransferFulfilmentDuplicateCheck.js',1,'2026-06-10 12:35:54'),
|
|
1678
|
+
(170,'600601_fxTransferFulfilmentDuplicateCheck-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1679
|
+
(171,'600700_fxTransferFulfilment.js',1,'2026-06-10 12:35:54'),
|
|
1680
|
+
(172,'600701_fxTransferFulfilment-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1681
|
+
(173,'600800_fxTransferExtension.js',1,'2026-06-10 12:35:54'),
|
|
1682
|
+
(174,'601400_fxTransferTimeout.js',1,'2026-06-10 12:35:54'),
|
|
1683
|
+
(175,'601401_fxTransferTimeout-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1684
|
+
(176,'601500_fxTransferError.js',1,'2026-06-10 12:35:54'),
|
|
1685
|
+
(177,'601501_fxTransferError-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1686
|
+
(178,'610200_fxTransferParticipant.js',1,'2026-06-10 12:35:54'),
|
|
1687
|
+
(179,'610201_fxTransferParticipant-indexes.js',1,'2026-06-10 12:35:54'),
|
|
1688
|
+
(180,'610202_fxTransferParticipant-participantId.js',1,'2026-06-10 12:35:54'),
|
|
1689
|
+
(181,'610403_participantPositionChange-fxTransfer.js',1,'2026-06-10 12:35:54'),
|
|
1690
|
+
(182,'800100_quotePartyView.js',1,'2026-06-10 12:35:54'),
|
|
1691
|
+
(183,'800101_feature-fixSubIdRef.js',1,'2026-06-10 12:35:54'),
|
|
1692
|
+
(184,'800200_quoteView.js',1,'2026-06-10 12:35:54'),
|
|
1693
|
+
(185,'800300_quoteResponseView.js',1,'2026-06-10 12:35:54'),
|
|
1694
|
+
(186,'900100_foreign-keys.js',1,'2026-06-10 12:35:54'),
|
|
1695
|
+
(187,'900101_foreign-keys.js',1,'2026-06-10 12:35:54'),
|
|
1696
|
+
(188,'910100_feature904DDL.js',1,'2026-06-10 12:35:54'),
|
|
1697
|
+
(189,'910101_feature904DataMigration.js',1,'2026-06-10 12:35:54'),
|
|
1698
|
+
(190,'910102_feature949DataMigration.js',1,'2026-06-10 12:35:54'),
|
|
1699
|
+
(191,'910102_hotfix954.js',1,'2026-06-10 12:35:54'),
|
|
1700
|
+
(192,'910103_feature1093SettlementByCurrency.js',1,'2026-06-10 12:35:54'),
|
|
1701
|
+
(193,'940100_quotePartyIdInfoExtension.js',1,'2026-06-10 12:35:54'),
|
|
1702
|
+
(194,'940101_quotePartyIdInfoExtension-2522.js',1,'2026-06-10 12:35:55'),
|
|
1703
|
+
(195,'950100_settlementContentAggregation-decimal184.js',1,'2026-06-10 12:35:55'),
|
|
1704
|
+
(196,'950101_transferParticipantStateChange.js',1,'2026-06-10 12:35:55'),
|
|
1705
|
+
(197,'950102_settlementModel-adjustPosition.js',1,'2026-06-10 12:35:55'),
|
|
1706
|
+
(198,'950103_dropTransferParticipantStateChange.js',1,'2026-06-10 12:35:55'),
|
|
1707
|
+
(199,'950104_settlementModel-settlementAccountTypeId.js',1,'2026-06-10 12:35:55'),
|
|
1708
|
+
(200,'950106_unique_settlement_model_ledger_account_currency.js',1,'2026-06-10 12:35:55'),
|
|
1709
|
+
(201,'950107_settlementWindowContent_foreign_settlementModel.js',1,'2026-06-10 12:35:55'),
|
|
1710
|
+
(202,'950108_participantProxy.js',1,'2026-06-10 12:35:55'),
|
|
1711
|
+
(203,'950109_fxQuote.js',1,'2026-06-10 12:35:55'),
|
|
1712
|
+
(204,'950110_fxQuoteResponse.js',1,'2026-06-10 12:35:55'),
|
|
1713
|
+
(205,'950111_fxQuoteError.js',1,'2026-06-10 12:35:55'),
|
|
1714
|
+
(206,'950113_fxQuoteDuplicateCheck.js',1,'2026-06-10 12:35:55'),
|
|
1715
|
+
(207,'950114_fxQuoteResponseDuplicateCheck.js',1,'2026-06-10 12:35:55'),
|
|
1716
|
+
(208,'950115_fxQuoteConversionTerms.js',1,'2026-06-10 12:35:55'),
|
|
1717
|
+
(209,'950116_fxQuoteConversionTermsExtension.js',1,'2026-06-10 12:35:55'),
|
|
1718
|
+
(210,'950117_fxQuoteResponseConversionTerms.js',1,'2026-06-10 12:35:55'),
|
|
1719
|
+
(211,'950118_fxQuoteResponseConversionTermsExtension.js',1,'2026-06-10 12:35:55'),
|
|
1720
|
+
(212,'950119_fxCharge.js',1,'2026-06-10 12:35:55'),
|
|
1721
|
+
(213,'950120_fxQuoteConversionTerms_sourceAmount_nullable.js',1,'2026-06-10 12:35:55'),
|
|
1722
|
+
(214,'960100_create_externalParticipant.js',1,'2026-06-10 12:35:55'),
|
|
1723
|
+
(215,'960110_alter_transferParticipant__addFiled_externalParticipantId.js',1,'2026-06-10 12:35:55'),
|
|
1724
|
+
(216,'960111_alter_fxTransferParticipant__addFiled_externalParticipantId.js',1,'2026-06-10 12:35:55'),
|
|
1725
|
+
(217,'960112_fxTransfer-indexes2.js',1,'2026-06-10 12:35:55'),
|
|
1726
|
+
(218,'960113_fxTransferExtension-indexes.js',1,'2026-06-10 12:35:55'),
|
|
1727
|
+
(219,'960114_fxTransferTimeout-indexes2.js',1,'2026-06-10 12:35:55'),
|
|
1728
|
+
(220,'961000_participantEndpoint_unique.js',1,'2026-06-10 12:35:55'),
|
|
1729
|
+
(221,'961001_transferForwarded.js',1,'2026-06-10 12:35:55'),
|
|
1730
|
+
(222,'961002_fxTransferForwarded.js',1,'2026-06-10 12:35:55');
|
|
1731
|
+
/*!40000 ALTER TABLE `migration` ENABLE KEYS */;
|
|
1732
|
+
UNLOCK TABLES;
|
|
1733
|
+
COMMIT;
|
|
1734
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1735
|
+
|
|
1736
|
+
--
|
|
1737
|
+
-- Table structure for table `migration_lock`
|
|
1738
|
+
--
|
|
1739
|
+
|
|
1740
|
+
DROP TABLE IF EXISTS `migration_lock`;
|
|
1741
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1742
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1743
|
+
CREATE TABLE `migration_lock` (
|
|
1744
|
+
`index` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
1745
|
+
`is_locked` int(11) DEFAULT NULL,
|
|
1746
|
+
PRIMARY KEY (`index`)
|
|
1747
|
+
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1748
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1749
|
+
|
|
1750
|
+
--
|
|
1751
|
+
-- Dumping data for table `migration_lock`
|
|
1752
|
+
--
|
|
1753
|
+
|
|
1754
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1755
|
+
LOCK TABLES `migration_lock` WRITE;
|
|
1756
|
+
/*!40000 ALTER TABLE `migration_lock` DISABLE KEYS */;
|
|
1757
|
+
INSERT INTO `migration_lock` VALUES
|
|
1758
|
+
(1,0);
|
|
1759
|
+
/*!40000 ALTER TABLE `migration_lock` ENABLE KEYS */;
|
|
1760
|
+
UNLOCK TABLES;
|
|
1761
|
+
COMMIT;
|
|
1762
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1763
|
+
|
|
1764
|
+
--
|
|
1765
|
+
-- Table structure for table `participant`
|
|
1766
|
+
--
|
|
1767
|
+
|
|
1768
|
+
DROP TABLE IF EXISTS `participant`;
|
|
1769
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1770
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1771
|
+
CREATE TABLE `participant` (
|
|
1772
|
+
`participantId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
1773
|
+
`name` varchar(256) NOT NULL,
|
|
1774
|
+
`description` varchar(512) DEFAULT NULL,
|
|
1775
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
1776
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1777
|
+
`createdBy` varchar(128) NOT NULL,
|
|
1778
|
+
`isProxy` tinyint(1) NOT NULL DEFAULT 0,
|
|
1779
|
+
PRIMARY KEY (`participantId`),
|
|
1780
|
+
UNIQUE KEY `participant_name_unique` (`name`)
|
|
1781
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1782
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1783
|
+
|
|
1784
|
+
--
|
|
1785
|
+
-- Dumping data for table `participant`
|
|
1786
|
+
--
|
|
1787
|
+
|
|
1788
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1789
|
+
LOCK TABLES `participant` WRITE;
|
|
1790
|
+
/*!40000 ALTER TABLE `participant` DISABLE KEYS */;
|
|
1791
|
+
/*!40000 ALTER TABLE `participant` ENABLE KEYS */;
|
|
1792
|
+
UNLOCK TABLES;
|
|
1793
|
+
COMMIT;
|
|
1794
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1795
|
+
|
|
1796
|
+
--
|
|
1797
|
+
-- Table structure for table `participantContact`
|
|
1798
|
+
--
|
|
1799
|
+
|
|
1800
|
+
DROP TABLE IF EXISTS `participantContact`;
|
|
1801
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1802
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1803
|
+
CREATE TABLE `participantContact` (
|
|
1804
|
+
`participantContactId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
1805
|
+
`participantId` int(10) unsigned NOT NULL,
|
|
1806
|
+
`contactTypeId` int(10) unsigned NOT NULL,
|
|
1807
|
+
`value` varchar(256) NOT NULL,
|
|
1808
|
+
`priorityPreference` int(11) NOT NULL DEFAULT 9,
|
|
1809
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
1810
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1811
|
+
`createdBy` varchar(128) NOT NULL,
|
|
1812
|
+
PRIMARY KEY (`participantContactId`),
|
|
1813
|
+
KEY `participantcontact_participantid_index` (`participantId`),
|
|
1814
|
+
KEY `participantcontact_contacttypeid_index` (`contactTypeId`),
|
|
1815
|
+
CONSTRAINT `participantcontact_contacttypeid_foreign` FOREIGN KEY (`contactTypeId`) REFERENCES `contactType` (`contactTypeId`),
|
|
1816
|
+
CONSTRAINT `participantcontact_participantid_foreign` FOREIGN KEY (`participantId`) REFERENCES `participant` (`participantId`)
|
|
1817
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1818
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1819
|
+
|
|
1820
|
+
--
|
|
1821
|
+
-- Dumping data for table `participantContact`
|
|
1822
|
+
--
|
|
1823
|
+
|
|
1824
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1825
|
+
LOCK TABLES `participantContact` WRITE;
|
|
1826
|
+
/*!40000 ALTER TABLE `participantContact` DISABLE KEYS */;
|
|
1827
|
+
/*!40000 ALTER TABLE `participantContact` ENABLE KEYS */;
|
|
1828
|
+
UNLOCK TABLES;
|
|
1829
|
+
COMMIT;
|
|
1830
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1831
|
+
|
|
1832
|
+
--
|
|
1833
|
+
-- Table structure for table `participantCurrency`
|
|
1834
|
+
--
|
|
1835
|
+
|
|
1836
|
+
DROP TABLE IF EXISTS `participantCurrency`;
|
|
1837
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1838
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1839
|
+
CREATE TABLE `participantCurrency` (
|
|
1840
|
+
`participantCurrencyId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
1841
|
+
`participantId` int(10) unsigned NOT NULL,
|
|
1842
|
+
`currencyId` varchar(3) NOT NULL,
|
|
1843
|
+
`ledgerAccountTypeId` int(10) unsigned NOT NULL,
|
|
1844
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
1845
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1846
|
+
`createdBy` varchar(128) NOT NULL,
|
|
1847
|
+
PRIMARY KEY (`participantCurrencyId`),
|
|
1848
|
+
UNIQUE KEY `participantcurrency_pcl_unique` (`participantId`,`currencyId`,`ledgerAccountTypeId`),
|
|
1849
|
+
KEY `participantcurrency_ledgeraccounttypeid_foreign` (`ledgerAccountTypeId`),
|
|
1850
|
+
KEY `participantcurrency_participantid_index` (`participantId`),
|
|
1851
|
+
KEY `participantcurrency_currencyid_index` (`currencyId`),
|
|
1852
|
+
CONSTRAINT `participantcurrency_currencyid_foreign` FOREIGN KEY (`currencyId`) REFERENCES `currency` (`currencyId`),
|
|
1853
|
+
CONSTRAINT `participantcurrency_ledgeraccounttypeid_foreign` FOREIGN KEY (`ledgerAccountTypeId`) REFERENCES `ledgerAccountType` (`ledgerAccountTypeId`),
|
|
1854
|
+
CONSTRAINT `participantcurrency_participantid_foreign` FOREIGN KEY (`participantId`) REFERENCES `participant` (`participantId`)
|
|
1855
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1856
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1857
|
+
|
|
1858
|
+
--
|
|
1859
|
+
-- Dumping data for table `participantCurrency`
|
|
1860
|
+
--
|
|
1861
|
+
|
|
1862
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1863
|
+
LOCK TABLES `participantCurrency` WRITE;
|
|
1864
|
+
/*!40000 ALTER TABLE `participantCurrency` DISABLE KEYS */;
|
|
1865
|
+
/*!40000 ALTER TABLE `participantCurrency` ENABLE KEYS */;
|
|
1866
|
+
UNLOCK TABLES;
|
|
1867
|
+
COMMIT;
|
|
1868
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1869
|
+
|
|
1870
|
+
--
|
|
1871
|
+
-- Table structure for table `participantEndpoint`
|
|
1872
|
+
--
|
|
1873
|
+
|
|
1874
|
+
DROP TABLE IF EXISTS `participantEndpoint`;
|
|
1875
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1876
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1877
|
+
CREATE TABLE `participantEndpoint` (
|
|
1878
|
+
`participantEndpointId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
1879
|
+
`participantId` int(10) unsigned NOT NULL,
|
|
1880
|
+
`endpointTypeId` int(10) unsigned NOT NULL,
|
|
1881
|
+
`value` varchar(512) NOT NULL,
|
|
1882
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
1883
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1884
|
+
`createdBy` varchar(128) NOT NULL,
|
|
1885
|
+
PRIMARY KEY (`participantEndpointId`),
|
|
1886
|
+
UNIQUE KEY `participantendpoint_participantid_endpointtypeid_unique` (`participantId`,`endpointTypeId`),
|
|
1887
|
+
KEY `participantendpoint_participantid_index` (`participantId`),
|
|
1888
|
+
KEY `participantendpoint_endpointtypeid_index` (`endpointTypeId`),
|
|
1889
|
+
CONSTRAINT `participantendpoint_endpointtypeid_foreign` FOREIGN KEY (`endpointTypeId`) REFERENCES `endpointType` (`endpointTypeId`),
|
|
1890
|
+
CONSTRAINT `participantendpoint_participantid_foreign` FOREIGN KEY (`participantId`) REFERENCES `participant` (`participantId`)
|
|
1891
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1892
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1893
|
+
|
|
1894
|
+
--
|
|
1895
|
+
-- Dumping data for table `participantEndpoint`
|
|
1896
|
+
--
|
|
1897
|
+
|
|
1898
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1899
|
+
LOCK TABLES `participantEndpoint` WRITE;
|
|
1900
|
+
/*!40000 ALTER TABLE `participantEndpoint` DISABLE KEYS */;
|
|
1901
|
+
/*!40000 ALTER TABLE `participantEndpoint` ENABLE KEYS */;
|
|
1902
|
+
UNLOCK TABLES;
|
|
1903
|
+
COMMIT;
|
|
1904
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1905
|
+
|
|
1906
|
+
--
|
|
1907
|
+
-- Table structure for table `participantLimit`
|
|
1908
|
+
--
|
|
1909
|
+
|
|
1910
|
+
DROP TABLE IF EXISTS `participantLimit`;
|
|
1911
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1912
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1913
|
+
CREATE TABLE `participantLimit` (
|
|
1914
|
+
`participantLimitId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
1915
|
+
`participantCurrencyId` int(10) unsigned NOT NULL,
|
|
1916
|
+
`participantLimitTypeId` int(10) unsigned NOT NULL,
|
|
1917
|
+
`value` decimal(18,4) NOT NULL DEFAULT 0.0000,
|
|
1918
|
+
`thresholdAlarmPercentage` decimal(5,2) NOT NULL DEFAULT 10.00,
|
|
1919
|
+
`startAfterParticipantPositionChangeId` bigint(20) unsigned DEFAULT NULL,
|
|
1920
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
1921
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1922
|
+
`createdBy` varchar(128) NOT NULL,
|
|
1923
|
+
PRIMARY KEY (`participantLimitId`),
|
|
1924
|
+
UNIQUE KEY `participantLimit_unique_idx` (`participantCurrencyId`,`participantLimitTypeId`,`isActive`,`participantLimitId`),
|
|
1925
|
+
KEY `participantlimit_participantcurrencyid_index` (`participantCurrencyId`),
|
|
1926
|
+
KEY `participantlimit_participantlimittypeid_index` (`participantLimitTypeId`),
|
|
1927
|
+
KEY `participantlimit_startafterparticipantpositionchangeid_index` (`startAfterParticipantPositionChangeId`),
|
|
1928
|
+
CONSTRAINT `participantlimit_participantcurrencyid_foreign` FOREIGN KEY (`participantCurrencyId`) REFERENCES `participantCurrency` (`participantCurrencyId`),
|
|
1929
|
+
CONSTRAINT `participantlimit_participantlimittypeid_foreign` FOREIGN KEY (`participantLimitTypeId`) REFERENCES `participantLimitType` (`participantLimitTypeId`),
|
|
1930
|
+
CONSTRAINT `participantlimit_startafterparticipantpositionchangeid_foreign` FOREIGN KEY (`startAfterParticipantPositionChangeId`) REFERENCES `participantPositionChange` (`participantPositionChangeId`)
|
|
1931
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1932
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1933
|
+
|
|
1934
|
+
--
|
|
1935
|
+
-- Dumping data for table `participantLimit`
|
|
1936
|
+
--
|
|
1937
|
+
|
|
1938
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1939
|
+
LOCK TABLES `participantLimit` WRITE;
|
|
1940
|
+
/*!40000 ALTER TABLE `participantLimit` DISABLE KEYS */;
|
|
1941
|
+
/*!40000 ALTER TABLE `participantLimit` ENABLE KEYS */;
|
|
1942
|
+
UNLOCK TABLES;
|
|
1943
|
+
COMMIT;
|
|
1944
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1945
|
+
|
|
1946
|
+
--
|
|
1947
|
+
-- Table structure for table `participantLimitType`
|
|
1948
|
+
--
|
|
1949
|
+
|
|
1950
|
+
DROP TABLE IF EXISTS `participantLimitType`;
|
|
1951
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1952
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1953
|
+
CREATE TABLE `participantLimitType` (
|
|
1954
|
+
`participantLimitTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
1955
|
+
`name` varchar(50) NOT NULL,
|
|
1956
|
+
`description` varchar(512) DEFAULT NULL,
|
|
1957
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
1958
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
1959
|
+
PRIMARY KEY (`participantLimitTypeId`),
|
|
1960
|
+
UNIQUE KEY `participantlimittype_name_unique` (`name`)
|
|
1961
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1962
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1963
|
+
|
|
1964
|
+
--
|
|
1965
|
+
-- Dumping data for table `participantLimitType`
|
|
1966
|
+
--
|
|
1967
|
+
|
|
1968
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1969
|
+
LOCK TABLES `participantLimitType` WRITE;
|
|
1970
|
+
/*!40000 ALTER TABLE `participantLimitType` DISABLE KEYS */;
|
|
1971
|
+
/*!40000 ALTER TABLE `participantLimitType` ENABLE KEYS */;
|
|
1972
|
+
UNLOCK TABLES;
|
|
1973
|
+
COMMIT;
|
|
1974
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
1975
|
+
|
|
1976
|
+
--
|
|
1977
|
+
-- Table structure for table `participantParty`
|
|
1978
|
+
--
|
|
1979
|
+
|
|
1980
|
+
DROP TABLE IF EXISTS `participantParty`;
|
|
1981
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
1982
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
1983
|
+
CREATE TABLE `participantParty` (
|
|
1984
|
+
`participantPartyId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
1985
|
+
`participantId` int(10) unsigned NOT NULL,
|
|
1986
|
+
`partyId` bigint(20) unsigned NOT NULL,
|
|
1987
|
+
PRIMARY KEY (`participantPartyId`),
|
|
1988
|
+
UNIQUE KEY `participantparty_participantid_partyid_unique` (`participantId`,`partyId`),
|
|
1989
|
+
KEY `participantparty_participantid_index` (`participantId`),
|
|
1990
|
+
CONSTRAINT `participantparty_participantid_foreign` FOREIGN KEY (`participantId`) REFERENCES `participant` (`participantId`)
|
|
1991
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
1992
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
1993
|
+
|
|
1994
|
+
--
|
|
1995
|
+
-- Dumping data for table `participantParty`
|
|
1996
|
+
--
|
|
1997
|
+
|
|
1998
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
1999
|
+
LOCK TABLES `participantParty` WRITE;
|
|
2000
|
+
/*!40000 ALTER TABLE `participantParty` DISABLE KEYS */;
|
|
2001
|
+
/*!40000 ALTER TABLE `participantParty` ENABLE KEYS */;
|
|
2002
|
+
UNLOCK TABLES;
|
|
2003
|
+
COMMIT;
|
|
2004
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2005
|
+
|
|
2006
|
+
--
|
|
2007
|
+
-- Table structure for table `participantPosition`
|
|
2008
|
+
--
|
|
2009
|
+
|
|
2010
|
+
DROP TABLE IF EXISTS `participantPosition`;
|
|
2011
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2012
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2013
|
+
CREATE TABLE `participantPosition` (
|
|
2014
|
+
`participantPositionId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2015
|
+
`participantCurrencyId` int(10) unsigned NOT NULL,
|
|
2016
|
+
`value` decimal(18,4) NOT NULL,
|
|
2017
|
+
`reservedValue` decimal(18,4) NOT NULL,
|
|
2018
|
+
`changedDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
2019
|
+
PRIMARY KEY (`participantPositionId`),
|
|
2020
|
+
KEY `participantposition_participantcurrencyid_index` (`participantCurrencyId`),
|
|
2021
|
+
CONSTRAINT `participantposition_participantcurrencyid_foreign` FOREIGN KEY (`participantCurrencyId`) REFERENCES `participantCurrency` (`participantCurrencyId`)
|
|
2022
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2023
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2024
|
+
|
|
2025
|
+
--
|
|
2026
|
+
-- Dumping data for table `participantPosition`
|
|
2027
|
+
--
|
|
2028
|
+
|
|
2029
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2030
|
+
LOCK TABLES `participantPosition` WRITE;
|
|
2031
|
+
/*!40000 ALTER TABLE `participantPosition` DISABLE KEYS */;
|
|
2032
|
+
/*!40000 ALTER TABLE `participantPosition` ENABLE KEYS */;
|
|
2033
|
+
UNLOCK TABLES;
|
|
2034
|
+
COMMIT;
|
|
2035
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2036
|
+
|
|
2037
|
+
--
|
|
2038
|
+
-- Table structure for table `participantPositionChange`
|
|
2039
|
+
--
|
|
2040
|
+
|
|
2041
|
+
DROP TABLE IF EXISTS `participantPositionChange`;
|
|
2042
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2043
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2044
|
+
CREATE TABLE `participantPositionChange` (
|
|
2045
|
+
`participantPositionChangeId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2046
|
+
`participantPositionId` bigint(20) unsigned NOT NULL,
|
|
2047
|
+
`transferStateChangeId` bigint(20) unsigned DEFAULT NULL,
|
|
2048
|
+
`value` decimal(18,4) NOT NULL,
|
|
2049
|
+
`reservedValue` decimal(18,4) NOT NULL,
|
|
2050
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
2051
|
+
`participantCurrencyId` int(10) unsigned NOT NULL,
|
|
2052
|
+
`change` decimal(18,4) NOT NULL,
|
|
2053
|
+
`fxTransferStateChangeId` bigint(20) unsigned DEFAULT NULL,
|
|
2054
|
+
PRIMARY KEY (`participantPositionChangeId`),
|
|
2055
|
+
KEY `participantpositionchange_participantpositionid_index` (`participantPositionId`),
|
|
2056
|
+
KEY `participantpositionchange_transferstatechangeid_index` (`transferStateChangeId`),
|
|
2057
|
+
KEY `participantpositionchange_participantcurrencyid_foreign` (`participantCurrencyId`),
|
|
2058
|
+
KEY `participantpositionchange_fxtransferstatechangeid_foreign` (`fxTransferStateChangeId`),
|
|
2059
|
+
CONSTRAINT `participantpositionchange_fxtransferstatechangeid_foreign` FOREIGN KEY (`fxTransferStateChangeId`) REFERENCES `fxTransferStateChange` (`fxTransferStateChangeId`),
|
|
2060
|
+
CONSTRAINT `participantpositionchange_participantcurrencyid_foreign` FOREIGN KEY (`participantCurrencyId`) REFERENCES `participantCurrency` (`participantCurrencyId`),
|
|
2061
|
+
CONSTRAINT `participantpositionchange_participantpositionid_foreign` FOREIGN KEY (`participantPositionId`) REFERENCES `participantPosition` (`participantPositionId`),
|
|
2062
|
+
CONSTRAINT `participantpositionchange_transferstatechangeid_foreign` FOREIGN KEY (`transferStateChangeId`) REFERENCES `transferStateChange` (`transferStateChangeId`)
|
|
2063
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2064
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2065
|
+
|
|
2066
|
+
--
|
|
2067
|
+
-- Dumping data for table `participantPositionChange`
|
|
2068
|
+
--
|
|
2069
|
+
|
|
2070
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2071
|
+
LOCK TABLES `participantPositionChange` WRITE;
|
|
2072
|
+
/*!40000 ALTER TABLE `participantPositionChange` DISABLE KEYS */;
|
|
2073
|
+
/*!40000 ALTER TABLE `participantPositionChange` ENABLE KEYS */;
|
|
2074
|
+
UNLOCK TABLES;
|
|
2075
|
+
COMMIT;
|
|
2076
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2077
|
+
|
|
2078
|
+
--
|
|
2079
|
+
-- Table structure for table `party`
|
|
2080
|
+
--
|
|
2081
|
+
|
|
2082
|
+
DROP TABLE IF EXISTS `party`;
|
|
2083
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2084
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2085
|
+
CREATE TABLE `party` (
|
|
2086
|
+
`partyId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2087
|
+
`quotePartyId` bigint(20) unsigned NOT NULL,
|
|
2088
|
+
`firstName` varchar(128) DEFAULT NULL,
|
|
2089
|
+
`middleName` varchar(128) DEFAULT NULL,
|
|
2090
|
+
`lastName` varchar(128) DEFAULT NULL,
|
|
2091
|
+
`dateOfBirth` datetime DEFAULT NULL,
|
|
2092
|
+
PRIMARY KEY (`partyId`),
|
|
2093
|
+
KEY `party_quotepartyid_foreign` (`quotePartyId`),
|
|
2094
|
+
CONSTRAINT `party_quotepartyid_foreign` FOREIGN KEY (`quotePartyId`) REFERENCES `quoteParty` (`quotePartyId`)
|
|
2095
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Optional pers. data provided during Quote Request & Response';
|
|
2096
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2097
|
+
|
|
2098
|
+
--
|
|
2099
|
+
-- Dumping data for table `party`
|
|
2100
|
+
--
|
|
2101
|
+
|
|
2102
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2103
|
+
LOCK TABLES `party` WRITE;
|
|
2104
|
+
/*!40000 ALTER TABLE `party` DISABLE KEYS */;
|
|
2105
|
+
/*!40000 ALTER TABLE `party` ENABLE KEYS */;
|
|
2106
|
+
UNLOCK TABLES;
|
|
2107
|
+
COMMIT;
|
|
2108
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2109
|
+
|
|
2110
|
+
--
|
|
2111
|
+
-- Table structure for table `partyIdentifierType`
|
|
2112
|
+
--
|
|
2113
|
+
|
|
2114
|
+
DROP TABLE IF EXISTS `partyIdentifierType`;
|
|
2115
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2116
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2117
|
+
CREATE TABLE `partyIdentifierType` (
|
|
2118
|
+
`partyIdentifierTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
2119
|
+
`name` varchar(50) NOT NULL,
|
|
2120
|
+
`description` varchar(512) NOT NULL,
|
|
2121
|
+
PRIMARY KEY (`partyIdentifierTypeId`),
|
|
2122
|
+
UNIQUE KEY `partyidentifiertype_name_unique` (`name`)
|
|
2123
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2124
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2125
|
+
|
|
2126
|
+
--
|
|
2127
|
+
-- Dumping data for table `partyIdentifierType`
|
|
2128
|
+
--
|
|
2129
|
+
|
|
2130
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2131
|
+
LOCK TABLES `partyIdentifierType` WRITE;
|
|
2132
|
+
/*!40000 ALTER TABLE `partyIdentifierType` DISABLE KEYS */;
|
|
2133
|
+
/*!40000 ALTER TABLE `partyIdentifierType` ENABLE KEYS */;
|
|
2134
|
+
UNLOCK TABLES;
|
|
2135
|
+
COMMIT;
|
|
2136
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2137
|
+
|
|
2138
|
+
--
|
|
2139
|
+
-- Table structure for table `partyType`
|
|
2140
|
+
--
|
|
2141
|
+
|
|
2142
|
+
DROP TABLE IF EXISTS `partyType`;
|
|
2143
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2144
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2145
|
+
CREATE TABLE `partyType` (
|
|
2146
|
+
`partyTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
2147
|
+
`name` varchar(128) NOT NULL,
|
|
2148
|
+
`description` varchar(256) NOT NULL,
|
|
2149
|
+
PRIMARY KEY (`partyTypeId`),
|
|
2150
|
+
UNIQUE KEY `partytype_name_unique` (`name`)
|
|
2151
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2152
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2153
|
+
|
|
2154
|
+
--
|
|
2155
|
+
-- Dumping data for table `partyType`
|
|
2156
|
+
--
|
|
2157
|
+
|
|
2158
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2159
|
+
LOCK TABLES `partyType` WRITE;
|
|
2160
|
+
/*!40000 ALTER TABLE `partyType` DISABLE KEYS */;
|
|
2161
|
+
/*!40000 ALTER TABLE `partyType` ENABLE KEYS */;
|
|
2162
|
+
UNLOCK TABLES;
|
|
2163
|
+
COMMIT;
|
|
2164
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2165
|
+
|
|
2166
|
+
--
|
|
2167
|
+
-- Table structure for table `quote`
|
|
2168
|
+
--
|
|
2169
|
+
|
|
2170
|
+
DROP TABLE IF EXISTS `quote`;
|
|
2171
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2172
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2173
|
+
CREATE TABLE `quote` (
|
|
2174
|
+
`quoteId` varchar(36) NOT NULL,
|
|
2175
|
+
`transactionReferenceId` varchar(36) NOT NULL COMMENT 'Common ID (decided by the Payer FSP) between the FSPs for the future transaction object',
|
|
2176
|
+
`transactionRequestId` varchar(36) DEFAULT NULL COMMENT 'Optional previously-sent transaction request',
|
|
2177
|
+
`note` text DEFAULT NULL COMMENT 'A memo that will be attached to the transaction',
|
|
2178
|
+
`expirationDate` datetime DEFAULT NULL COMMENT 'Optional expiration for the requested transaction',
|
|
2179
|
+
`transactionInitiatorId` int(10) unsigned NOT NULL COMMENT 'This is part of the transaction initiator',
|
|
2180
|
+
`transactionInitiatorTypeId` int(10) unsigned NOT NULL COMMENT 'This is part of the transaction initiator type',
|
|
2181
|
+
`transactionScenarioId` int(10) unsigned NOT NULL COMMENT 'This is part of the transaction scenario',
|
|
2182
|
+
`balanceOfPaymentsId` int(10) unsigned DEFAULT NULL COMMENT 'This is part of the transaction type that contains the elements- balance of payment',
|
|
2183
|
+
`transactionSubScenarioId` int(10) unsigned DEFAULT NULL COMMENT 'This is part of the transaction type sub scenario as defined by the local scheme',
|
|
2184
|
+
`amountTypeId` int(10) unsigned NOT NULL COMMENT 'This is part of the transaction type that contains valid elements for - Amount Type',
|
|
2185
|
+
`amount` decimal(18,4) NOT NULL DEFAULT 0.0000 COMMENT 'The amount that the quote is being requested for. Need to be interpert in accordance with the amount type',
|
|
2186
|
+
`currencyId` varchar(255) DEFAULT NULL COMMENT 'Trading currency pertaining to the Amount',
|
|
2187
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
2188
|
+
PRIMARY KEY (`quoteId`),
|
|
2189
|
+
KEY `quote_transactionreferenceid_foreign` (`transactionReferenceId`),
|
|
2190
|
+
KEY `quote_transactionrequestid_foreign` (`transactionRequestId`),
|
|
2191
|
+
KEY `quote_transactioninitiatorid_foreign` (`transactionInitiatorId`),
|
|
2192
|
+
KEY `quote_transactioninitiatortypeid_foreign` (`transactionInitiatorTypeId`),
|
|
2193
|
+
KEY `quote_transactionscenarioid_foreign` (`transactionScenarioId`),
|
|
2194
|
+
KEY `quote_balanceofpaymentsid_foreign` (`balanceOfPaymentsId`),
|
|
2195
|
+
KEY `quote_transactionsubscenarioid_foreign` (`transactionSubScenarioId`),
|
|
2196
|
+
KEY `quote_amounttypeid_foreign` (`amountTypeId`),
|
|
2197
|
+
KEY `quote_currencyid_foreign` (`currencyId`),
|
|
2198
|
+
CONSTRAINT `quote_amounttypeid_foreign` FOREIGN KEY (`amountTypeId`) REFERENCES `amountType` (`amountTypeId`),
|
|
2199
|
+
CONSTRAINT `quote_balanceofpaymentsid_foreign` FOREIGN KEY (`balanceOfPaymentsId`) REFERENCES `balanceOfPayments` (`balanceOfPaymentsId`),
|
|
2200
|
+
CONSTRAINT `quote_currencyid_foreign` FOREIGN KEY (`currencyId`) REFERENCES `currency` (`currencyId`),
|
|
2201
|
+
CONSTRAINT `quote_transactioninitiatorid_foreign` FOREIGN KEY (`transactionInitiatorId`) REFERENCES `transactionInitiator` (`transactionInitiatorId`),
|
|
2202
|
+
CONSTRAINT `quote_transactioninitiatortypeid_foreign` FOREIGN KEY (`transactionInitiatorTypeId`) REFERENCES `transactionInitiatorType` (`transactionInitiatorTypeId`),
|
|
2203
|
+
CONSTRAINT `quote_transactionreferenceid_foreign` FOREIGN KEY (`transactionReferenceId`) REFERENCES `transactionReference` (`transactionReferenceId`),
|
|
2204
|
+
CONSTRAINT `quote_transactionscenarioid_foreign` FOREIGN KEY (`transactionScenarioId`) REFERENCES `transactionScenario` (`transactionScenarioId`),
|
|
2205
|
+
CONSTRAINT `quote_transactionsubscenarioid_foreign` FOREIGN KEY (`transactionSubScenarioId`) REFERENCES `transactionSubScenario` (`transactionSubScenarioId`)
|
|
2206
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2207
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2208
|
+
|
|
2209
|
+
--
|
|
2210
|
+
-- Dumping data for table `quote`
|
|
2211
|
+
--
|
|
2212
|
+
|
|
2213
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2214
|
+
LOCK TABLES `quote` WRITE;
|
|
2215
|
+
/*!40000 ALTER TABLE `quote` DISABLE KEYS */;
|
|
2216
|
+
/*!40000 ALTER TABLE `quote` ENABLE KEYS */;
|
|
2217
|
+
UNLOCK TABLES;
|
|
2218
|
+
COMMIT;
|
|
2219
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2220
|
+
|
|
2221
|
+
--
|
|
2222
|
+
-- Table structure for table `quoteDuplicateCheck`
|
|
2223
|
+
--
|
|
2224
|
+
|
|
2225
|
+
DROP TABLE IF EXISTS `quoteDuplicateCheck`;
|
|
2226
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2227
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2228
|
+
CREATE TABLE `quoteDuplicateCheck` (
|
|
2229
|
+
`quoteId` varchar(36) NOT NULL COMMENT 'Common ID between the FSPs for the quote object, decided by the Payer FSP',
|
|
2230
|
+
`hash` varchar(1024) DEFAULT NULL COMMENT 'hash value received for the quote request',
|
|
2231
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
2232
|
+
PRIMARY KEY (`quoteId`)
|
|
2233
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2234
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2235
|
+
|
|
2236
|
+
--
|
|
2237
|
+
-- Dumping data for table `quoteDuplicateCheck`
|
|
2238
|
+
--
|
|
2239
|
+
|
|
2240
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2241
|
+
LOCK TABLES `quoteDuplicateCheck` WRITE;
|
|
2242
|
+
/*!40000 ALTER TABLE `quoteDuplicateCheck` DISABLE KEYS */;
|
|
2243
|
+
/*!40000 ALTER TABLE `quoteDuplicateCheck` ENABLE KEYS */;
|
|
2244
|
+
UNLOCK TABLES;
|
|
2245
|
+
COMMIT;
|
|
2246
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2247
|
+
|
|
2248
|
+
--
|
|
2249
|
+
-- Table structure for table `quoteError`
|
|
2250
|
+
--
|
|
2251
|
+
|
|
2252
|
+
DROP TABLE IF EXISTS `quoteError`;
|
|
2253
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2254
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2255
|
+
CREATE TABLE `quoteError` (
|
|
2256
|
+
`quoteErrorId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2257
|
+
`quoteId` varchar(36) NOT NULL COMMENT 'Common ID between the FSPs for the quote object, decided by the Payer FSP',
|
|
2258
|
+
`quoteResponseId` bigint(20) unsigned DEFAULT NULL COMMENT 'The response to the intial quote',
|
|
2259
|
+
`errorCode` int(10) unsigned NOT NULL,
|
|
2260
|
+
`errorDescription` varchar(128) NOT NULL,
|
|
2261
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
2262
|
+
PRIMARY KEY (`quoteErrorId`),
|
|
2263
|
+
KEY `quoteerror_quoteid_foreign` (`quoteId`),
|
|
2264
|
+
KEY `quoteerror_quoteresponseid_foreign` (`quoteResponseId`),
|
|
2265
|
+
CONSTRAINT `quoteerror_quoteid_foreign` FOREIGN KEY (`quoteId`) REFERENCES `quote` (`quoteId`),
|
|
2266
|
+
CONSTRAINT `quoteerror_quoteresponseid_foreign` FOREIGN KEY (`quoteResponseId`) REFERENCES `quoteResponse` (`quoteResponseId`)
|
|
2267
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2268
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2269
|
+
|
|
2270
|
+
--
|
|
2271
|
+
-- Dumping data for table `quoteError`
|
|
2272
|
+
--
|
|
2273
|
+
|
|
2274
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2275
|
+
LOCK TABLES `quoteError` WRITE;
|
|
2276
|
+
/*!40000 ALTER TABLE `quoteError` DISABLE KEYS */;
|
|
2277
|
+
/*!40000 ALTER TABLE `quoteError` ENABLE KEYS */;
|
|
2278
|
+
UNLOCK TABLES;
|
|
2279
|
+
COMMIT;
|
|
2280
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2281
|
+
|
|
2282
|
+
--
|
|
2283
|
+
-- Table structure for table `quoteExtension`
|
|
2284
|
+
--
|
|
2285
|
+
|
|
2286
|
+
DROP TABLE IF EXISTS `quoteExtension`;
|
|
2287
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2288
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2289
|
+
CREATE TABLE `quoteExtension` (
|
|
2290
|
+
`quoteExtensionId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2291
|
+
`quoteId` varchar(36) NOT NULL COMMENT 'Common ID between the FSPs for the quote object, decided by the Payer FSP',
|
|
2292
|
+
`quoteResponseId` bigint(20) unsigned DEFAULT NULL,
|
|
2293
|
+
`transactionId` varchar(36) DEFAULT NULL COMMENT 'The transaction reference that is part of the initial quote',
|
|
2294
|
+
`key` varchar(128) NOT NULL,
|
|
2295
|
+
`value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
2296
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
2297
|
+
PRIMARY KEY (`quoteExtensionId`),
|
|
2298
|
+
KEY `quoteextension_quoteid_foreign` (`quoteId`),
|
|
2299
|
+
KEY `quoteextension_quoteresponseid_foreign` (`quoteResponseId`),
|
|
2300
|
+
KEY `quoteextension_transactionid_foreign` (`transactionId`),
|
|
2301
|
+
CONSTRAINT `quoteextension_quoteid_foreign` FOREIGN KEY (`quoteId`) REFERENCES `quote` (`quoteId`),
|
|
2302
|
+
CONSTRAINT `quoteextension_quoteresponseid_foreign` FOREIGN KEY (`quoteResponseId`) REFERENCES `quoteResponse` (`quoteResponseId`),
|
|
2303
|
+
CONSTRAINT `quoteextension_transactionid_foreign` FOREIGN KEY (`transactionId`) REFERENCES `transactionReference` (`transactionReferenceId`)
|
|
2304
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2305
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2306
|
+
|
|
2307
|
+
--
|
|
2308
|
+
-- Dumping data for table `quoteExtension`
|
|
2309
|
+
--
|
|
2310
|
+
|
|
2311
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2312
|
+
LOCK TABLES `quoteExtension` WRITE;
|
|
2313
|
+
/*!40000 ALTER TABLE `quoteExtension` DISABLE KEYS */;
|
|
2314
|
+
/*!40000 ALTER TABLE `quoteExtension` ENABLE KEYS */;
|
|
2315
|
+
UNLOCK TABLES;
|
|
2316
|
+
COMMIT;
|
|
2317
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2318
|
+
|
|
2319
|
+
--
|
|
2320
|
+
-- Table structure for table `quoteParty`
|
|
2321
|
+
--
|
|
2322
|
+
|
|
2323
|
+
DROP TABLE IF EXISTS `quoteParty`;
|
|
2324
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2325
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2326
|
+
CREATE TABLE `quoteParty` (
|
|
2327
|
+
`quotePartyId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2328
|
+
`quoteId` varchar(36) NOT NULL COMMENT 'Common ID between the FSPs for the quote object, decided by the Payer FSP',
|
|
2329
|
+
`partyTypeId` int(10) unsigned NOT NULL COMMENT 'Specifies the type of party this row relates to; typically PAYER or PAYEE',
|
|
2330
|
+
`partyIdentifierTypeId` int(10) unsigned NOT NULL COMMENT 'Specifies the type of identifier used to identify this party e.g. MSISDN, IBAN etc...',
|
|
2331
|
+
`partyIdentifierValue` varchar(128) NOT NULL COMMENT 'The value of the identifier used to identify this party',
|
|
2332
|
+
`partySubIdOrTypeId` varchar(128) DEFAULT NULL COMMENT 'A sub-identifier or sub-type for the Party',
|
|
2333
|
+
`fspId` varchar(255) DEFAULT NULL COMMENT 'This is the FSP ID as provided in the quote. For the switch between multi-parties it is required',
|
|
2334
|
+
`participantId` int(10) unsigned DEFAULT NULL COMMENT 'Reference to the resolved FSP ID (if supplied/known). If not an error will be reported',
|
|
2335
|
+
`merchantClassificationCode` varchar(4) DEFAULT NULL COMMENT 'Used in the context of Payee Information, where the Payee happens to be a merchant accepting merchant payments',
|
|
2336
|
+
`partyName` varchar(128) DEFAULT NULL COMMENT 'Display name of the Party, could be a real name or a nick name',
|
|
2337
|
+
`transferParticipantRoleTypeId` int(10) unsigned NOT NULL COMMENT 'The role this Party is playing in the transaction',
|
|
2338
|
+
`ledgerEntryTypeId` int(10) unsigned NOT NULL COMMENT 'The type of financial entry this Party is presenting',
|
|
2339
|
+
`amount` decimal(18,4) NOT NULL,
|
|
2340
|
+
`currencyId` varchar(3) NOT NULL COMMENT 'Trading currency pertaining to the party amount',
|
|
2341
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
2342
|
+
PRIMARY KEY (`quotePartyId`),
|
|
2343
|
+
KEY `quoteparty_quoteid_foreign` (`quoteId`),
|
|
2344
|
+
KEY `quoteparty_partytypeid_foreign` (`partyTypeId`),
|
|
2345
|
+
KEY `quoteparty_partyidentifiertypeid_foreign` (`partyIdentifierTypeId`),
|
|
2346
|
+
KEY `quoteparty_partysubidortypeid_foreign` (`partySubIdOrTypeId`),
|
|
2347
|
+
KEY `quoteparty_participantid_foreign` (`participantId`),
|
|
2348
|
+
KEY `quoteparty_transferparticipantroletypeid_foreign` (`transferParticipantRoleTypeId`),
|
|
2349
|
+
KEY `quoteparty_ledgerentrytypeid_foreign` (`ledgerEntryTypeId`),
|
|
2350
|
+
KEY `quoteparty_currencyid_foreign` (`currencyId`),
|
|
2351
|
+
CONSTRAINT `quoteparty_currencyid_foreign` FOREIGN KEY (`currencyId`) REFERENCES `currency` (`currencyId`),
|
|
2352
|
+
CONSTRAINT `quoteparty_ledgerentrytypeid_foreign` FOREIGN KEY (`ledgerEntryTypeId`) REFERENCES `ledgerEntryType` (`ledgerEntryTypeId`),
|
|
2353
|
+
CONSTRAINT `quoteparty_participantid_foreign` FOREIGN KEY (`participantId`) REFERENCES `participant` (`participantId`),
|
|
2354
|
+
CONSTRAINT `quoteparty_partyidentifiertypeid_foreign` FOREIGN KEY (`partyIdentifierTypeId`) REFERENCES `partyIdentifierType` (`partyIdentifierTypeId`),
|
|
2355
|
+
CONSTRAINT `quoteparty_partytypeid_foreign` FOREIGN KEY (`partyTypeId`) REFERENCES `partyType` (`partyTypeId`),
|
|
2356
|
+
CONSTRAINT `quoteparty_quoteid_foreign` FOREIGN KEY (`quoteId`) REFERENCES `quote` (`quoteId`),
|
|
2357
|
+
CONSTRAINT `quoteparty_transferparticipantroletypeid_foreign` FOREIGN KEY (`transferParticipantRoleTypeId`) REFERENCES `transferParticipantRoleType` (`transferParticipantRoleTypeId`)
|
|
2358
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2359
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2360
|
+
|
|
2361
|
+
--
|
|
2362
|
+
-- Dumping data for table `quoteParty`
|
|
2363
|
+
--
|
|
2364
|
+
|
|
2365
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2366
|
+
LOCK TABLES `quoteParty` WRITE;
|
|
2367
|
+
/*!40000 ALTER TABLE `quoteParty` DISABLE KEYS */;
|
|
2368
|
+
/*!40000 ALTER TABLE `quoteParty` ENABLE KEYS */;
|
|
2369
|
+
UNLOCK TABLES;
|
|
2370
|
+
COMMIT;
|
|
2371
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2372
|
+
|
|
2373
|
+
--
|
|
2374
|
+
-- Table structure for table `quotePartyIdInfoExtension`
|
|
2375
|
+
--
|
|
2376
|
+
|
|
2377
|
+
DROP TABLE IF EXISTS `quotePartyIdInfoExtension`;
|
|
2378
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2379
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2380
|
+
CREATE TABLE `quotePartyIdInfoExtension` (
|
|
2381
|
+
`quotePartyIdInfoExtensionId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2382
|
+
`quotePartyId` bigint(20) unsigned NOT NULL COMMENT 'quotePartyId: a common id between the tables quotePartyIdInfoExtension and quoteParty',
|
|
2383
|
+
`key` varchar(128) NOT NULL,
|
|
2384
|
+
`value` text NOT NULL,
|
|
2385
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
2386
|
+
PRIMARY KEY (`quotePartyIdInfoExtensionId`),
|
|
2387
|
+
KEY `quotepartyidinfoextension_quotepartyid_foreign` (`quotePartyId`),
|
|
2388
|
+
CONSTRAINT `quotepartyidinfoextension_quotepartyid_foreign` FOREIGN KEY (`quotePartyId`) REFERENCES `quoteParty` (`quotePartyId`)
|
|
2389
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
2390
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2391
|
+
|
|
2392
|
+
--
|
|
2393
|
+
-- Dumping data for table `quotePartyIdInfoExtension`
|
|
2394
|
+
--
|
|
2395
|
+
|
|
2396
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2397
|
+
LOCK TABLES `quotePartyIdInfoExtension` WRITE;
|
|
2398
|
+
/*!40000 ALTER TABLE `quotePartyIdInfoExtension` DISABLE KEYS */;
|
|
2399
|
+
/*!40000 ALTER TABLE `quotePartyIdInfoExtension` ENABLE KEYS */;
|
|
2400
|
+
UNLOCK TABLES;
|
|
2401
|
+
COMMIT;
|
|
2402
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2403
|
+
|
|
2404
|
+
--
|
|
2405
|
+
-- Temporary table structure for view `quotePartyView`
|
|
2406
|
+
--
|
|
2407
|
+
|
|
2408
|
+
DROP TABLE IF EXISTS `quotePartyView`;
|
|
2409
|
+
/*!50001 DROP VIEW IF EXISTS `quotePartyView`*/;
|
|
2410
|
+
SET @saved_cs_client = @@character_set_client;
|
|
2411
|
+
SET character_set_client = utf8mb4;
|
|
2412
|
+
/*!50001 CREATE VIEW `quotePartyView` AS SELECT
|
|
2413
|
+
1 AS `quoteId`,
|
|
2414
|
+
1 AS `quotePartyId`,
|
|
2415
|
+
1 AS `partyType`,
|
|
2416
|
+
1 AS `identifierType`,
|
|
2417
|
+
1 AS `partyIdentifierValue`,
|
|
2418
|
+
1 AS `partySubIdOrType`,
|
|
2419
|
+
1 AS `fspId`,
|
|
2420
|
+
1 AS `merchantClassificationCode`,
|
|
2421
|
+
1 AS `partyName`,
|
|
2422
|
+
1 AS `firstName`,
|
|
2423
|
+
1 AS `lastName`,
|
|
2424
|
+
1 AS `middleName`,
|
|
2425
|
+
1 AS `dateOfBirth`,
|
|
2426
|
+
1 AS `longitude`,
|
|
2427
|
+
1 AS `latitude` */;
|
|
2428
|
+
SET character_set_client = @saved_cs_client;
|
|
2429
|
+
|
|
2430
|
+
--
|
|
2431
|
+
-- Table structure for table `quoteResponse`
|
|
2432
|
+
--
|
|
2433
|
+
|
|
2434
|
+
DROP TABLE IF EXISTS `quoteResponse`;
|
|
2435
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2436
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2437
|
+
CREATE TABLE `quoteResponse` (
|
|
2438
|
+
`quoteResponseId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2439
|
+
`quoteId` varchar(36) NOT NULL COMMENT 'Common ID between the FSPs for the quote object, decided by the Payer FSP',
|
|
2440
|
+
`transferAmountCurrencyId` varchar(3) NOT NULL COMMENT 'CurrencyId of the transfer amount',
|
|
2441
|
+
`transferAmount` decimal(18,4) NOT NULL COMMENT 'The amount of money that the Payer FSP should transfer to the Payee FSP',
|
|
2442
|
+
`payeeReceiveAmountCurrencyId` varchar(3) DEFAULT NULL COMMENT 'CurrencyId of the payee receive amount',
|
|
2443
|
+
`payeeReceiveAmount` decimal(18,4) DEFAULT NULL COMMENT 'The amount of Money that the Payee should receive in the end-to-end transaction. Optional as the Payee FSP might not want to disclose any optional Payee fees',
|
|
2444
|
+
`payeeFspFeeCurrencyId` varchar(3) DEFAULT NULL COMMENT 'CurrencyId of the payee fsp fee amount',
|
|
2445
|
+
`payeeFspFeeAmount` decimal(18,4) DEFAULT NULL COMMENT 'Payee FSP’s part of the transaction fee',
|
|
2446
|
+
`payeeFspCommissionCurrencyId` varchar(3) DEFAULT NULL COMMENT 'CurrencyId of the payee fsp commission amount',
|
|
2447
|
+
`payeeFspCommissionAmount` decimal(18,4) DEFAULT NULL COMMENT 'Transaction commission from the Payee FSP',
|
|
2448
|
+
`ilpCondition` varchar(256) NOT NULL,
|
|
2449
|
+
`responseExpirationDate` datetime DEFAULT NULL COMMENT 'Optional expiration for the requested transaction',
|
|
2450
|
+
`isValid` tinyint(1) DEFAULT NULL,
|
|
2451
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
2452
|
+
PRIMARY KEY (`quoteResponseId`),
|
|
2453
|
+
KEY `quoteresponse_quoteid_foreign` (`quoteId`),
|
|
2454
|
+
KEY `quoteresponse_transferamountcurrencyid_foreign` (`transferAmountCurrencyId`),
|
|
2455
|
+
KEY `quoteresponse_payeereceiveamountcurrencyid_foreign` (`payeeReceiveAmountCurrencyId`),
|
|
2456
|
+
KEY `quoteresponse_payeefspcommissioncurrencyid_foreign` (`payeeFspCommissionCurrencyId`),
|
|
2457
|
+
CONSTRAINT `quoteresponse_payeefspcommissioncurrencyid_foreign` FOREIGN KEY (`payeeFspCommissionCurrencyId`) REFERENCES `currency` (`currencyId`),
|
|
2458
|
+
CONSTRAINT `quoteresponse_payeereceiveamountcurrencyid_foreign` FOREIGN KEY (`payeeReceiveAmountCurrencyId`) REFERENCES `currency` (`currencyId`),
|
|
2459
|
+
CONSTRAINT `quoteresponse_quoteid_foreign` FOREIGN KEY (`quoteId`) REFERENCES `quote` (`quoteId`),
|
|
2460
|
+
CONSTRAINT `quoteresponse_transferamountcurrencyid_foreign` FOREIGN KEY (`transferAmountCurrencyId`) REFERENCES `currency` (`currencyId`)
|
|
2461
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci COMMENT='This table is the primary store for quote responses';
|
|
2462
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2463
|
+
|
|
2464
|
+
--
|
|
2465
|
+
-- Dumping data for table `quoteResponse`
|
|
2466
|
+
--
|
|
2467
|
+
|
|
2468
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2469
|
+
LOCK TABLES `quoteResponse` WRITE;
|
|
2470
|
+
/*!40000 ALTER TABLE `quoteResponse` DISABLE KEYS */;
|
|
2471
|
+
/*!40000 ALTER TABLE `quoteResponse` ENABLE KEYS */;
|
|
2472
|
+
UNLOCK TABLES;
|
|
2473
|
+
COMMIT;
|
|
2474
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2475
|
+
|
|
2476
|
+
--
|
|
2477
|
+
-- Table structure for table `quoteResponseDuplicateCheck`
|
|
2478
|
+
--
|
|
2479
|
+
|
|
2480
|
+
DROP TABLE IF EXISTS `quoteResponseDuplicateCheck`;
|
|
2481
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2482
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2483
|
+
CREATE TABLE `quoteResponseDuplicateCheck` (
|
|
2484
|
+
`quoteResponseId` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'The response to the intial quote',
|
|
2485
|
+
`quoteId` varchar(36) NOT NULL COMMENT 'Common ID between the FSPs for the quote object, decided by the Payer FSP',
|
|
2486
|
+
`hash` varchar(255) DEFAULT NULL COMMENT 'hash value received for the quote response',
|
|
2487
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
2488
|
+
PRIMARY KEY (`quoteResponseId`),
|
|
2489
|
+
KEY `quoteresponseduplicatecheck_quoteid_foreign` (`quoteId`),
|
|
2490
|
+
CONSTRAINT `quoteresponseduplicatecheck_quoteid_foreign` FOREIGN KEY (`quoteId`) REFERENCES `quote` (`quoteId`),
|
|
2491
|
+
CONSTRAINT `quoteresponseduplicatecheck_quoteresponseid_foreign` FOREIGN KEY (`quoteResponseId`) REFERENCES `quoteResponse` (`quoteResponseId`)
|
|
2492
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2493
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2494
|
+
|
|
2495
|
+
--
|
|
2496
|
+
-- Dumping data for table `quoteResponseDuplicateCheck`
|
|
2497
|
+
--
|
|
2498
|
+
|
|
2499
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2500
|
+
LOCK TABLES `quoteResponseDuplicateCheck` WRITE;
|
|
2501
|
+
/*!40000 ALTER TABLE `quoteResponseDuplicateCheck` DISABLE KEYS */;
|
|
2502
|
+
/*!40000 ALTER TABLE `quoteResponseDuplicateCheck` ENABLE KEYS */;
|
|
2503
|
+
UNLOCK TABLES;
|
|
2504
|
+
COMMIT;
|
|
2505
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2506
|
+
|
|
2507
|
+
--
|
|
2508
|
+
-- Table structure for table `quoteResponseIlpPacket`
|
|
2509
|
+
--
|
|
2510
|
+
|
|
2511
|
+
DROP TABLE IF EXISTS `quoteResponseIlpPacket`;
|
|
2512
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2513
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2514
|
+
CREATE TABLE `quoteResponseIlpPacket` (
|
|
2515
|
+
`quoteResponseId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2516
|
+
`value` text NOT NULL COMMENT 'ilpPacket returned from Payee in response to a quote request',
|
|
2517
|
+
PRIMARY KEY (`quoteResponseId`),
|
|
2518
|
+
CONSTRAINT `quoteresponseilppacket_quoteresponseid_foreign` FOREIGN KEY (`quoteResponseId`) REFERENCES `quoteResponse` (`quoteResponseId`)
|
|
2519
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2520
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2521
|
+
|
|
2522
|
+
--
|
|
2523
|
+
-- Dumping data for table `quoteResponseIlpPacket`
|
|
2524
|
+
--
|
|
2525
|
+
|
|
2526
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2527
|
+
LOCK TABLES `quoteResponseIlpPacket` WRITE;
|
|
2528
|
+
/*!40000 ALTER TABLE `quoteResponseIlpPacket` DISABLE KEYS */;
|
|
2529
|
+
/*!40000 ALTER TABLE `quoteResponseIlpPacket` ENABLE KEYS */;
|
|
2530
|
+
UNLOCK TABLES;
|
|
2531
|
+
COMMIT;
|
|
2532
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2533
|
+
|
|
2534
|
+
--
|
|
2535
|
+
-- Temporary table structure for view `quoteResponseView`
|
|
2536
|
+
--
|
|
2537
|
+
|
|
2538
|
+
DROP TABLE IF EXISTS `quoteResponseView`;
|
|
2539
|
+
/*!50001 DROP VIEW IF EXISTS `quoteResponseView`*/;
|
|
2540
|
+
SET @saved_cs_client = @@character_set_client;
|
|
2541
|
+
SET character_set_client = utf8mb4;
|
|
2542
|
+
/*!50001 CREATE VIEW `quoteResponseView` AS SELECT
|
|
2543
|
+
1 AS `quoteResponseId`,
|
|
2544
|
+
1 AS `quoteId`,
|
|
2545
|
+
1 AS `transferAmountCurrencyId`,
|
|
2546
|
+
1 AS `transferAmount`,
|
|
2547
|
+
1 AS `payeeReceiveAmountCurrencyId`,
|
|
2548
|
+
1 AS `payeeReceiveAmount`,
|
|
2549
|
+
1 AS `payeeFspFeeCurrencyId`,
|
|
2550
|
+
1 AS `payeeFspFeeAmount`,
|
|
2551
|
+
1 AS `payeeFspCommissionCurrencyId`,
|
|
2552
|
+
1 AS `payeeFspCommissionAmount`,
|
|
2553
|
+
1 AS `ilpCondition`,
|
|
2554
|
+
1 AS `responseExpirationDate`,
|
|
2555
|
+
1 AS `isValid`,
|
|
2556
|
+
1 AS `createdDate`,
|
|
2557
|
+
1 AS `ilpPacket`,
|
|
2558
|
+
1 AS `longitude`,
|
|
2559
|
+
1 AS `latitude` */;
|
|
2560
|
+
SET character_set_client = @saved_cs_client;
|
|
2561
|
+
|
|
2562
|
+
--
|
|
2563
|
+
-- Temporary table structure for view `quoteView`
|
|
2564
|
+
--
|
|
2565
|
+
|
|
2566
|
+
DROP TABLE IF EXISTS `quoteView`;
|
|
2567
|
+
/*!50001 DROP VIEW IF EXISTS `quoteView`*/;
|
|
2568
|
+
SET @saved_cs_client = @@character_set_client;
|
|
2569
|
+
SET character_set_client = utf8mb4;
|
|
2570
|
+
/*!50001 CREATE VIEW `quoteView` AS SELECT
|
|
2571
|
+
1 AS `quoteId`,
|
|
2572
|
+
1 AS `transactionReferenceId`,
|
|
2573
|
+
1 AS `transactionRequestId`,
|
|
2574
|
+
1 AS `note`,
|
|
2575
|
+
1 AS `expirationDate`,
|
|
2576
|
+
1 AS `transactionInitiator`,
|
|
2577
|
+
1 AS `transactionInitiatorType`,
|
|
2578
|
+
1 AS `transactionScenario`,
|
|
2579
|
+
1 AS `balanceOfPaymentsId`,
|
|
2580
|
+
1 AS `transactionSubScenario`,
|
|
2581
|
+
1 AS `amountType`,
|
|
2582
|
+
1 AS `amount`,
|
|
2583
|
+
1 AS `currency` */;
|
|
2584
|
+
SET character_set_client = @saved_cs_client;
|
|
2585
|
+
|
|
2586
|
+
--
|
|
2587
|
+
-- Table structure for table `segment`
|
|
2588
|
+
--
|
|
2589
|
+
|
|
2590
|
+
DROP TABLE IF EXISTS `segment`;
|
|
2591
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2592
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2593
|
+
CREATE TABLE `segment` (
|
|
2594
|
+
`segmentId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
2595
|
+
`segmentType` varchar(50) NOT NULL,
|
|
2596
|
+
`enumeration` int(11) NOT NULL DEFAULT 0,
|
|
2597
|
+
`tableName` varchar(50) NOT NULL,
|
|
2598
|
+
`value` bigint(20) NOT NULL,
|
|
2599
|
+
`changedDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
2600
|
+
PRIMARY KEY (`segmentId`),
|
|
2601
|
+
KEY `segment_keys_index` (`segmentType`,`enumeration`,`tableName`)
|
|
2602
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2603
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2604
|
+
|
|
2605
|
+
--
|
|
2606
|
+
-- Dumping data for table `segment`
|
|
2607
|
+
--
|
|
2608
|
+
|
|
2609
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2610
|
+
LOCK TABLES `segment` WRITE;
|
|
2611
|
+
/*!40000 ALTER TABLE `segment` DISABLE KEYS */;
|
|
2612
|
+
/*!40000 ALTER TABLE `segment` ENABLE KEYS */;
|
|
2613
|
+
UNLOCK TABLES;
|
|
2614
|
+
COMMIT;
|
|
2615
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2616
|
+
|
|
2617
|
+
--
|
|
2618
|
+
-- Table structure for table `settlement`
|
|
2619
|
+
--
|
|
2620
|
+
|
|
2621
|
+
DROP TABLE IF EXISTS `settlement`;
|
|
2622
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2623
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2624
|
+
CREATE TABLE `settlement` (
|
|
2625
|
+
`settlementId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2626
|
+
`reason` varchar(512) DEFAULT NULL,
|
|
2627
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
2628
|
+
`currentStateChangeId` bigint(20) unsigned DEFAULT NULL,
|
|
2629
|
+
`settlementModelId` int(10) unsigned DEFAULT NULL,
|
|
2630
|
+
PRIMARY KEY (`settlementId`),
|
|
2631
|
+
KEY `settlement_currentstatechangeid_foreign` (`currentStateChangeId`),
|
|
2632
|
+
KEY `settlement_settlementmodelid_foreign` (`settlementModelId`),
|
|
2633
|
+
CONSTRAINT `settlement_currentstatechangeid_foreign` FOREIGN KEY (`currentStateChangeId`) REFERENCES `settlementStateChange` (`settlementStateChangeId`),
|
|
2634
|
+
CONSTRAINT `settlement_settlementmodelid_foreign` FOREIGN KEY (`settlementModelId`) REFERENCES `settlementModel` (`settlementModelId`)
|
|
2635
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2636
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2637
|
+
|
|
2638
|
+
--
|
|
2639
|
+
-- Dumping data for table `settlement`
|
|
2640
|
+
--
|
|
2641
|
+
|
|
2642
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2643
|
+
LOCK TABLES `settlement` WRITE;
|
|
2644
|
+
/*!40000 ALTER TABLE `settlement` DISABLE KEYS */;
|
|
2645
|
+
/*!40000 ALTER TABLE `settlement` ENABLE KEYS */;
|
|
2646
|
+
UNLOCK TABLES;
|
|
2647
|
+
COMMIT;
|
|
2648
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2649
|
+
|
|
2650
|
+
--
|
|
2651
|
+
-- Table structure for table `settlementContentAggregation`
|
|
2652
|
+
--
|
|
2653
|
+
|
|
2654
|
+
DROP TABLE IF EXISTS `settlementContentAggregation`;
|
|
2655
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2656
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2657
|
+
CREATE TABLE `settlementContentAggregation` (
|
|
2658
|
+
`settlementContentAggregationId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2659
|
+
`settlementWindowContentId` bigint(20) unsigned NOT NULL,
|
|
2660
|
+
`participantCurrencyId` int(10) unsigned NOT NULL,
|
|
2661
|
+
`transferParticipantRoleTypeId` int(10) unsigned NOT NULL,
|
|
2662
|
+
`ledgerEntryTypeId` int(10) unsigned NOT NULL,
|
|
2663
|
+
`amount` decimal(18,4) NOT NULL,
|
|
2664
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
2665
|
+
`currentStateId` varchar(50) NOT NULL,
|
|
2666
|
+
`settlementId` bigint(20) unsigned DEFAULT NULL,
|
|
2667
|
+
PRIMARY KEY (`settlementContentAggregationId`),
|
|
2668
|
+
KEY `settlementcontentaggregation_settlementwindowcontentid_index` (`settlementWindowContentId`),
|
|
2669
|
+
KEY `settlementcontentaggregation_participantcurrencyid_index` (`participantCurrencyId`),
|
|
2670
|
+
KEY `settlementcontentaggregation_transferparticipantroletypeid_index` (`transferParticipantRoleTypeId`),
|
|
2671
|
+
KEY `settlementcontentaggregation_ledgerentrytypeid_index` (`ledgerEntryTypeId`),
|
|
2672
|
+
KEY `settlementcontentaggregation_currentstateid_index` (`currentStateId`),
|
|
2673
|
+
KEY `settlementcontentaggregation_settlementid_index` (`settlementId`),
|
|
2674
|
+
CONSTRAINT `sca_transferparticipantroletypeid_foreign` FOREIGN KEY (`transferParticipantRoleTypeId`) REFERENCES `transferParticipantRoleType` (`transferParticipantRoleTypeId`),
|
|
2675
|
+
CONSTRAINT `settlementcontentaggregation_currentstateid_foreign` FOREIGN KEY (`currentStateId`) REFERENCES `settlementWindowState` (`settlementWindowStateId`),
|
|
2676
|
+
CONSTRAINT `settlementcontentaggregation_ledgerentrytypeid_foreign` FOREIGN KEY (`ledgerEntryTypeId`) REFERENCES `ledgerEntryType` (`ledgerEntryTypeId`),
|
|
2677
|
+
CONSTRAINT `settlementcontentaggregation_participantcurrencyid_foreign` FOREIGN KEY (`participantCurrencyId`) REFERENCES `participantCurrency` (`participantCurrencyId`),
|
|
2678
|
+
CONSTRAINT `settlementcontentaggregation_settlementid_foreign` FOREIGN KEY (`settlementId`) REFERENCES `settlement` (`settlementId`),
|
|
2679
|
+
CONSTRAINT `settlementcontentaggregation_settlementwindowcontentid_foreign` FOREIGN KEY (`settlementWindowContentId`) REFERENCES `settlementWindowContent` (`settlementWindowContentId`)
|
|
2680
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2681
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2682
|
+
|
|
2683
|
+
--
|
|
2684
|
+
-- Dumping data for table `settlementContentAggregation`
|
|
2685
|
+
--
|
|
2686
|
+
|
|
2687
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2688
|
+
LOCK TABLES `settlementContentAggregation` WRITE;
|
|
2689
|
+
/*!40000 ALTER TABLE `settlementContentAggregation` DISABLE KEYS */;
|
|
2690
|
+
/*!40000 ALTER TABLE `settlementContentAggregation` ENABLE KEYS */;
|
|
2691
|
+
UNLOCK TABLES;
|
|
2692
|
+
COMMIT;
|
|
2693
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2694
|
+
|
|
2695
|
+
--
|
|
2696
|
+
-- Table structure for table `settlementDelay`
|
|
2697
|
+
--
|
|
2698
|
+
|
|
2699
|
+
DROP TABLE IF EXISTS `settlementDelay`;
|
|
2700
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2701
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2702
|
+
CREATE TABLE `settlementDelay` (
|
|
2703
|
+
`settlementDelayId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
2704
|
+
`name` varchar(50) NOT NULL,
|
|
2705
|
+
`description` varchar(512) DEFAULT NULL,
|
|
2706
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
2707
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
2708
|
+
PRIMARY KEY (`settlementDelayId`),
|
|
2709
|
+
UNIQUE KEY `settlementdelay_name_unique` (`name`)
|
|
2710
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2711
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2712
|
+
|
|
2713
|
+
--
|
|
2714
|
+
-- Dumping data for table `settlementDelay`
|
|
2715
|
+
--
|
|
2716
|
+
|
|
2717
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2718
|
+
LOCK TABLES `settlementDelay` WRITE;
|
|
2719
|
+
/*!40000 ALTER TABLE `settlementDelay` DISABLE KEYS */;
|
|
2720
|
+
/*!40000 ALTER TABLE `settlementDelay` ENABLE KEYS */;
|
|
2721
|
+
UNLOCK TABLES;
|
|
2722
|
+
COMMIT;
|
|
2723
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2724
|
+
|
|
2725
|
+
--
|
|
2726
|
+
-- Table structure for table `settlementGranularity`
|
|
2727
|
+
--
|
|
2728
|
+
|
|
2729
|
+
DROP TABLE IF EXISTS `settlementGranularity`;
|
|
2730
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2731
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2732
|
+
CREATE TABLE `settlementGranularity` (
|
|
2733
|
+
`settlementGranularityId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
2734
|
+
`name` varchar(50) NOT NULL,
|
|
2735
|
+
`description` varchar(512) DEFAULT NULL,
|
|
2736
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
2737
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
2738
|
+
PRIMARY KEY (`settlementGranularityId`),
|
|
2739
|
+
UNIQUE KEY `settlementgranularity_name_unique` (`name`)
|
|
2740
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2741
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2742
|
+
|
|
2743
|
+
--
|
|
2744
|
+
-- Dumping data for table `settlementGranularity`
|
|
2745
|
+
--
|
|
2746
|
+
|
|
2747
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2748
|
+
LOCK TABLES `settlementGranularity` WRITE;
|
|
2749
|
+
/*!40000 ALTER TABLE `settlementGranularity` DISABLE KEYS */;
|
|
2750
|
+
/*!40000 ALTER TABLE `settlementGranularity` ENABLE KEYS */;
|
|
2751
|
+
UNLOCK TABLES;
|
|
2752
|
+
COMMIT;
|
|
2753
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2754
|
+
|
|
2755
|
+
--
|
|
2756
|
+
-- Table structure for table `settlementInterchange`
|
|
2757
|
+
--
|
|
2758
|
+
|
|
2759
|
+
DROP TABLE IF EXISTS `settlementInterchange`;
|
|
2760
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2761
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2762
|
+
CREATE TABLE `settlementInterchange` (
|
|
2763
|
+
`settlementInterchangeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
2764
|
+
`name` varchar(50) NOT NULL,
|
|
2765
|
+
`description` varchar(512) DEFAULT NULL,
|
|
2766
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
2767
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
2768
|
+
PRIMARY KEY (`settlementInterchangeId`),
|
|
2769
|
+
UNIQUE KEY `settlementinterchange_name_unique` (`name`)
|
|
2770
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2771
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2772
|
+
|
|
2773
|
+
--
|
|
2774
|
+
-- Dumping data for table `settlementInterchange`
|
|
2775
|
+
--
|
|
2776
|
+
|
|
2777
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2778
|
+
LOCK TABLES `settlementInterchange` WRITE;
|
|
2779
|
+
/*!40000 ALTER TABLE `settlementInterchange` DISABLE KEYS */;
|
|
2780
|
+
/*!40000 ALTER TABLE `settlementInterchange` ENABLE KEYS */;
|
|
2781
|
+
UNLOCK TABLES;
|
|
2782
|
+
COMMIT;
|
|
2783
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2784
|
+
|
|
2785
|
+
--
|
|
2786
|
+
-- Table structure for table `settlementModel`
|
|
2787
|
+
--
|
|
2788
|
+
|
|
2789
|
+
DROP TABLE IF EXISTS `settlementModel`;
|
|
2790
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2791
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2792
|
+
CREATE TABLE `settlementModel` (
|
|
2793
|
+
`settlementModelId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
2794
|
+
`name` varchar(50) NOT NULL,
|
|
2795
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
2796
|
+
`settlementGranularityId` int(10) unsigned NOT NULL,
|
|
2797
|
+
`settlementInterchangeId` int(10) unsigned NOT NULL,
|
|
2798
|
+
`settlementDelayId` int(10) unsigned NOT NULL,
|
|
2799
|
+
`currencyId` varchar(3) DEFAULT NULL,
|
|
2800
|
+
`requireLiquidityCheck` tinyint(1) NOT NULL DEFAULT 1,
|
|
2801
|
+
`ledgerAccountTypeId` int(10) unsigned NOT NULL,
|
|
2802
|
+
`autoPositionReset` tinyint(1) NOT NULL DEFAULT 0,
|
|
2803
|
+
`adjustPosition` tinyint(1) NOT NULL DEFAULT 0,
|
|
2804
|
+
`settlementAccountTypeId` int(11) NOT NULL,
|
|
2805
|
+
PRIMARY KEY (`settlementModelId`),
|
|
2806
|
+
UNIQUE KEY `settlementmodel_name_unique` (`name`),
|
|
2807
|
+
UNIQUE KEY `settlementmodel_unique` (`settlementGranularityId`,`settlementInterchangeId`,`settlementDelayId`,`ledgerAccountTypeId`,`currencyId`),
|
|
2808
|
+
UNIQUE KEY `settlementmodel_uniqueAccountCurrency` (`ledgerAccountTypeId`,`currencyId`),
|
|
2809
|
+
UNIQUE KEY `settlementmodel_currencyid_ledgeraccounttypeid_unique` (`currencyId`,`ledgerAccountTypeId`),
|
|
2810
|
+
KEY `settlementmodel_settlementgranularityid_index` (`settlementGranularityId`),
|
|
2811
|
+
KEY `settlementmodel_settlementinterchangeid_index` (`settlementInterchangeId`),
|
|
2812
|
+
KEY `settlementmodel_settlementdelayid_index` (`settlementDelayId`),
|
|
2813
|
+
KEY `settlementmodel_currencyid_index` (`currencyId`),
|
|
2814
|
+
KEY `settlementmodel_ledgeraccounttypeid_index` (`ledgerAccountTypeId`),
|
|
2815
|
+
CONSTRAINT `settlementmodel_currencyid_foreign` FOREIGN KEY (`currencyId`) REFERENCES `currency` (`currencyId`),
|
|
2816
|
+
CONSTRAINT `settlementmodel_ledgeraccounttypeid_foreign` FOREIGN KEY (`ledgerAccountTypeId`) REFERENCES `ledgerAccountType` (`ledgerAccountTypeId`),
|
|
2817
|
+
CONSTRAINT `settlementmodel_settlementdelayid_foreign` FOREIGN KEY (`settlementDelayId`) REFERENCES `settlementDelay` (`settlementDelayId`),
|
|
2818
|
+
CONSTRAINT `settlementmodel_settlementgranularityid_foreign` FOREIGN KEY (`settlementGranularityId`) REFERENCES `settlementGranularity` (`settlementGranularityId`),
|
|
2819
|
+
CONSTRAINT `settlementmodel_settlementinterchangeid_foreign` FOREIGN KEY (`settlementInterchangeId`) REFERENCES `settlementInterchange` (`settlementInterchangeId`)
|
|
2820
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2821
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2822
|
+
|
|
2823
|
+
--
|
|
2824
|
+
-- Dumping data for table `settlementModel`
|
|
2825
|
+
--
|
|
2826
|
+
|
|
2827
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2828
|
+
LOCK TABLES `settlementModel` WRITE;
|
|
2829
|
+
/*!40000 ALTER TABLE `settlementModel` DISABLE KEYS */;
|
|
2830
|
+
/*!40000 ALTER TABLE `settlementModel` ENABLE KEYS */;
|
|
2831
|
+
UNLOCK TABLES;
|
|
2832
|
+
COMMIT;
|
|
2833
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2834
|
+
|
|
2835
|
+
--
|
|
2836
|
+
-- Table structure for table `settlementParticipantCurrency`
|
|
2837
|
+
--
|
|
2838
|
+
|
|
2839
|
+
DROP TABLE IF EXISTS `settlementParticipantCurrency`;
|
|
2840
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2841
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2842
|
+
CREATE TABLE `settlementParticipantCurrency` (
|
|
2843
|
+
`settlementParticipantCurrencyId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2844
|
+
`settlementId` bigint(20) unsigned NOT NULL,
|
|
2845
|
+
`participantCurrencyId` int(10) unsigned NOT NULL,
|
|
2846
|
+
`netAmount` decimal(18,4) NOT NULL,
|
|
2847
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
2848
|
+
`currentStateChangeId` bigint(20) unsigned DEFAULT NULL,
|
|
2849
|
+
`settlementTransferId` varchar(36) DEFAULT NULL,
|
|
2850
|
+
PRIMARY KEY (`settlementParticipantCurrencyId`),
|
|
2851
|
+
KEY `settlementparticipantcurrency_settlementid_index` (`settlementId`),
|
|
2852
|
+
KEY `settlementparticipantcurrency_participantcurrencyid_index` (`participantCurrencyId`),
|
|
2853
|
+
KEY `settlementparticipantcurrency_settlementtransferid_index` (`settlementTransferId`),
|
|
2854
|
+
KEY `spc_currentstatechangeid_foreign` (`currentStateChangeId`),
|
|
2855
|
+
CONSTRAINT `settlementparticipantcurrency_participantcurrencyid_foreign` FOREIGN KEY (`participantCurrencyId`) REFERENCES `participantCurrency` (`participantCurrencyId`),
|
|
2856
|
+
CONSTRAINT `settlementparticipantcurrency_settlementid_foreign` FOREIGN KEY (`settlementId`) REFERENCES `settlement` (`settlementId`),
|
|
2857
|
+
CONSTRAINT `spc_currentstatechangeid_foreign` FOREIGN KEY (`currentStateChangeId`) REFERENCES `settlementParticipantCurrencyStateChange` (`settlementParticipantCurrencyStateChangeId`)
|
|
2858
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2859
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2860
|
+
|
|
2861
|
+
--
|
|
2862
|
+
-- Dumping data for table `settlementParticipantCurrency`
|
|
2863
|
+
--
|
|
2864
|
+
|
|
2865
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2866
|
+
LOCK TABLES `settlementParticipantCurrency` WRITE;
|
|
2867
|
+
/*!40000 ALTER TABLE `settlementParticipantCurrency` DISABLE KEYS */;
|
|
2868
|
+
/*!40000 ALTER TABLE `settlementParticipantCurrency` ENABLE KEYS */;
|
|
2869
|
+
UNLOCK TABLES;
|
|
2870
|
+
COMMIT;
|
|
2871
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2872
|
+
|
|
2873
|
+
--
|
|
2874
|
+
-- Table structure for table `settlementParticipantCurrencyStateChange`
|
|
2875
|
+
--
|
|
2876
|
+
|
|
2877
|
+
DROP TABLE IF EXISTS `settlementParticipantCurrencyStateChange`;
|
|
2878
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2879
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2880
|
+
CREATE TABLE `settlementParticipantCurrencyStateChange` (
|
|
2881
|
+
`settlementParticipantCurrencyStateChangeId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2882
|
+
`settlementParticipantCurrencyId` bigint(20) unsigned NOT NULL,
|
|
2883
|
+
`settlementStateId` varchar(50) NOT NULL,
|
|
2884
|
+
`reason` varchar(512) DEFAULT NULL,
|
|
2885
|
+
`externalReference` varchar(50) DEFAULT NULL,
|
|
2886
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
2887
|
+
PRIMARY KEY (`settlementParticipantCurrencyStateChangeId`),
|
|
2888
|
+
KEY `spcsc_settlementparticipantcurrencyid_index` (`settlementParticipantCurrencyId`),
|
|
2889
|
+
KEY `spcsc_settlementstateid_index` (`settlementStateId`),
|
|
2890
|
+
CONSTRAINT `spcsc_settlementparticipantcurrencyid_foreign` FOREIGN KEY (`settlementParticipantCurrencyId`) REFERENCES `settlementParticipantCurrency` (`settlementParticipantCurrencyId`),
|
|
2891
|
+
CONSTRAINT `spcsc_settlementstateid_foreign` FOREIGN KEY (`settlementStateId`) REFERENCES `settlementState` (`settlementStateId`)
|
|
2892
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2893
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2894
|
+
|
|
2895
|
+
--
|
|
2896
|
+
-- Dumping data for table `settlementParticipantCurrencyStateChange`
|
|
2897
|
+
--
|
|
2898
|
+
|
|
2899
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2900
|
+
LOCK TABLES `settlementParticipantCurrencyStateChange` WRITE;
|
|
2901
|
+
/*!40000 ALTER TABLE `settlementParticipantCurrencyStateChange` DISABLE KEYS */;
|
|
2902
|
+
/*!40000 ALTER TABLE `settlementParticipantCurrencyStateChange` ENABLE KEYS */;
|
|
2903
|
+
UNLOCK TABLES;
|
|
2904
|
+
COMMIT;
|
|
2905
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2906
|
+
|
|
2907
|
+
--
|
|
2908
|
+
-- Table structure for table `settlementSettlementWindow`
|
|
2909
|
+
--
|
|
2910
|
+
|
|
2911
|
+
DROP TABLE IF EXISTS `settlementSettlementWindow`;
|
|
2912
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2913
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2914
|
+
CREATE TABLE `settlementSettlementWindow` (
|
|
2915
|
+
`settlementSettlementWindowId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2916
|
+
`settlementId` bigint(20) unsigned NOT NULL,
|
|
2917
|
+
`settlementWindowId` bigint(20) unsigned NOT NULL,
|
|
2918
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
2919
|
+
PRIMARY KEY (`settlementSettlementWindowId`),
|
|
2920
|
+
UNIQUE KEY `settlementsettlementwindow_unique` (`settlementId`,`settlementWindowId`),
|
|
2921
|
+
KEY `settlementsettlementwindow_settlementid_index` (`settlementId`),
|
|
2922
|
+
KEY `settlementsettlementwindow_settlementwindowid_index` (`settlementWindowId`),
|
|
2923
|
+
CONSTRAINT `settlementsettlementwindow_settlementid_foreign` FOREIGN KEY (`settlementId`) REFERENCES `settlement` (`settlementId`),
|
|
2924
|
+
CONSTRAINT `settlementsettlementwindow_settlementwindowid_foreign` FOREIGN KEY (`settlementWindowId`) REFERENCES `settlementWindow` (`settlementWindowId`)
|
|
2925
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2926
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2927
|
+
|
|
2928
|
+
--
|
|
2929
|
+
-- Dumping data for table `settlementSettlementWindow`
|
|
2930
|
+
--
|
|
2931
|
+
|
|
2932
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2933
|
+
LOCK TABLES `settlementSettlementWindow` WRITE;
|
|
2934
|
+
/*!40000 ALTER TABLE `settlementSettlementWindow` DISABLE KEYS */;
|
|
2935
|
+
/*!40000 ALTER TABLE `settlementSettlementWindow` ENABLE KEYS */;
|
|
2936
|
+
UNLOCK TABLES;
|
|
2937
|
+
COMMIT;
|
|
2938
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2939
|
+
|
|
2940
|
+
--
|
|
2941
|
+
-- Table structure for table `settlementState`
|
|
2942
|
+
--
|
|
2943
|
+
|
|
2944
|
+
DROP TABLE IF EXISTS `settlementState`;
|
|
2945
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2946
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2947
|
+
CREATE TABLE `settlementState` (
|
|
2948
|
+
`settlementStateId` varchar(50) NOT NULL,
|
|
2949
|
+
`enumeration` varchar(50) NOT NULL,
|
|
2950
|
+
`description` varchar(512) DEFAULT NULL,
|
|
2951
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
2952
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
2953
|
+
PRIMARY KEY (`settlementStateId`)
|
|
2954
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2955
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2956
|
+
|
|
2957
|
+
--
|
|
2958
|
+
-- Dumping data for table `settlementState`
|
|
2959
|
+
--
|
|
2960
|
+
|
|
2961
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2962
|
+
LOCK TABLES `settlementState` WRITE;
|
|
2963
|
+
/*!40000 ALTER TABLE `settlementState` DISABLE KEYS */;
|
|
2964
|
+
/*!40000 ALTER TABLE `settlementState` ENABLE KEYS */;
|
|
2965
|
+
UNLOCK TABLES;
|
|
2966
|
+
COMMIT;
|
|
2967
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
2968
|
+
|
|
2969
|
+
--
|
|
2970
|
+
-- Table structure for table `settlementStateChange`
|
|
2971
|
+
--
|
|
2972
|
+
|
|
2973
|
+
DROP TABLE IF EXISTS `settlementStateChange`;
|
|
2974
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
2975
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
2976
|
+
CREATE TABLE `settlementStateChange` (
|
|
2977
|
+
`settlementStateChangeId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
2978
|
+
`settlementId` bigint(20) unsigned NOT NULL,
|
|
2979
|
+
`settlementStateId` varchar(50) NOT NULL,
|
|
2980
|
+
`reason` varchar(512) DEFAULT NULL,
|
|
2981
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
2982
|
+
PRIMARY KEY (`settlementStateChangeId`),
|
|
2983
|
+
KEY `settlementstatechange_settlementid_index` (`settlementId`),
|
|
2984
|
+
KEY `settlementstatechange_settlementstateid_index` (`settlementStateId`),
|
|
2985
|
+
CONSTRAINT `settlementstatechange_settlementid_foreign` FOREIGN KEY (`settlementId`) REFERENCES `settlement` (`settlementId`),
|
|
2986
|
+
CONSTRAINT `settlementstatechange_settlementstateid_foreign` FOREIGN KEY (`settlementStateId`) REFERENCES `settlementState` (`settlementStateId`)
|
|
2987
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
2988
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
2989
|
+
|
|
2990
|
+
--
|
|
2991
|
+
-- Dumping data for table `settlementStateChange`
|
|
2992
|
+
--
|
|
2993
|
+
|
|
2994
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
2995
|
+
LOCK TABLES `settlementStateChange` WRITE;
|
|
2996
|
+
/*!40000 ALTER TABLE `settlementStateChange` DISABLE KEYS */;
|
|
2997
|
+
/*!40000 ALTER TABLE `settlementStateChange` ENABLE KEYS */;
|
|
2998
|
+
UNLOCK TABLES;
|
|
2999
|
+
COMMIT;
|
|
3000
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3001
|
+
|
|
3002
|
+
--
|
|
3003
|
+
-- Table structure for table `settlementTransferParticipant`
|
|
3004
|
+
--
|
|
3005
|
+
|
|
3006
|
+
DROP TABLE IF EXISTS `settlementTransferParticipant`;
|
|
3007
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3008
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3009
|
+
CREATE TABLE `settlementTransferParticipant` (
|
|
3010
|
+
`settlementTransferParticipantId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
3011
|
+
`settlementId` bigint(20) unsigned NOT NULL,
|
|
3012
|
+
`settlementWindowId` bigint(20) unsigned NOT NULL,
|
|
3013
|
+
`participantCurrencyId` int(10) unsigned NOT NULL,
|
|
3014
|
+
`transferParticipantRoleTypeId` int(10) unsigned NOT NULL,
|
|
3015
|
+
`ledgerEntryTypeId` int(10) unsigned NOT NULL,
|
|
3016
|
+
`amount` decimal(18,4) NOT NULL,
|
|
3017
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3018
|
+
PRIMARY KEY (`settlementTransferParticipantId`),
|
|
3019
|
+
KEY `settlementtransferparticipant_settlementid_index` (`settlementId`),
|
|
3020
|
+
KEY `settlementtransferparticipant_settlementwindowid_index` (`settlementWindowId`),
|
|
3021
|
+
KEY `settlementtransferparticipant_participantcurrencyid_index` (`participantCurrencyId`),
|
|
3022
|
+
KEY `stp_transferparticipantroletypeid_index` (`transferParticipantRoleTypeId`),
|
|
3023
|
+
KEY `settlementtransferparticipant_ledgerentrytypeid_index` (`ledgerEntryTypeId`),
|
|
3024
|
+
CONSTRAINT `settlementtransferparticipant_ledgerentrytypeid_foreign` FOREIGN KEY (`ledgerEntryTypeId`) REFERENCES `ledgerEntryType` (`ledgerEntryTypeId`),
|
|
3025
|
+
CONSTRAINT `settlementtransferparticipant_participantcurrencyid_foreign` FOREIGN KEY (`participantCurrencyId`) REFERENCES `participantCurrency` (`participantCurrencyId`),
|
|
3026
|
+
CONSTRAINT `settlementtransferparticipant_settlementid_foreign` FOREIGN KEY (`settlementId`) REFERENCES `settlement` (`settlementId`),
|
|
3027
|
+
CONSTRAINT `settlementtransferparticipant_settlementwindowid_foreign` FOREIGN KEY (`settlementWindowId`) REFERENCES `settlementWindow` (`settlementWindowId`),
|
|
3028
|
+
CONSTRAINT `stp_transferparticipantroletypeid_foreign` FOREIGN KEY (`transferParticipantRoleTypeId`) REFERENCES `transferParticipantRoleType` (`transferParticipantRoleTypeId`)
|
|
3029
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3030
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3031
|
+
|
|
3032
|
+
--
|
|
3033
|
+
-- Dumping data for table `settlementTransferParticipant`
|
|
3034
|
+
--
|
|
3035
|
+
|
|
3036
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3037
|
+
LOCK TABLES `settlementTransferParticipant` WRITE;
|
|
3038
|
+
/*!40000 ALTER TABLE `settlementTransferParticipant` DISABLE KEYS */;
|
|
3039
|
+
/*!40000 ALTER TABLE `settlementTransferParticipant` ENABLE KEYS */;
|
|
3040
|
+
UNLOCK TABLES;
|
|
3041
|
+
COMMIT;
|
|
3042
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3043
|
+
|
|
3044
|
+
--
|
|
3045
|
+
-- Table structure for table `settlementWindow`
|
|
3046
|
+
--
|
|
3047
|
+
|
|
3048
|
+
DROP TABLE IF EXISTS `settlementWindow`;
|
|
3049
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3050
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3051
|
+
CREATE TABLE `settlementWindow` (
|
|
3052
|
+
`settlementWindowId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
3053
|
+
`reason` varchar(512) DEFAULT NULL,
|
|
3054
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3055
|
+
`currentStateChangeId` bigint(20) unsigned DEFAULT NULL,
|
|
3056
|
+
PRIMARY KEY (`settlementWindowId`),
|
|
3057
|
+
KEY `settlementwindow_currentstatechangeid_foreign` (`currentStateChangeId`),
|
|
3058
|
+
CONSTRAINT `settlementwindow_currentstatechangeid_foreign` FOREIGN KEY (`currentStateChangeId`) REFERENCES `settlementWindowStateChange` (`settlementWindowStateChangeId`)
|
|
3059
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3060
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3061
|
+
|
|
3062
|
+
--
|
|
3063
|
+
-- Dumping data for table `settlementWindow`
|
|
3064
|
+
--
|
|
3065
|
+
|
|
3066
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3067
|
+
LOCK TABLES `settlementWindow` WRITE;
|
|
3068
|
+
/*!40000 ALTER TABLE `settlementWindow` DISABLE KEYS */;
|
|
3069
|
+
/*!40000 ALTER TABLE `settlementWindow` ENABLE KEYS */;
|
|
3070
|
+
UNLOCK TABLES;
|
|
3071
|
+
COMMIT;
|
|
3072
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3073
|
+
|
|
3074
|
+
--
|
|
3075
|
+
-- Table structure for table `settlementWindowContent`
|
|
3076
|
+
--
|
|
3077
|
+
|
|
3078
|
+
DROP TABLE IF EXISTS `settlementWindowContent`;
|
|
3079
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3080
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3081
|
+
CREATE TABLE `settlementWindowContent` (
|
|
3082
|
+
`settlementWindowContentId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
3083
|
+
`settlementWindowId` bigint(20) unsigned NOT NULL,
|
|
3084
|
+
`ledgerAccountTypeId` int(10) unsigned NOT NULL,
|
|
3085
|
+
`currencyId` varchar(3) NOT NULL,
|
|
3086
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3087
|
+
`currentStateChangeId` bigint(20) unsigned DEFAULT NULL,
|
|
3088
|
+
`settlementId` bigint(20) unsigned DEFAULT NULL,
|
|
3089
|
+
`SettlementModelId` int(10) unsigned DEFAULT NULL,
|
|
3090
|
+
PRIMARY KEY (`settlementWindowContentId`),
|
|
3091
|
+
KEY `settlementwindowcontent_settlementwindowid_index` (`settlementWindowId`),
|
|
3092
|
+
KEY `settlementwindowcontent_ledgeraccounttypeid_index` (`ledgerAccountTypeId`),
|
|
3093
|
+
KEY `settlementwindowcontent_currencyid_index` (`currencyId`),
|
|
3094
|
+
KEY `settlementwindowcontent_currentstatechangeid_index` (`currentStateChangeId`),
|
|
3095
|
+
KEY `settlementwindowcontent_settlementid_index` (`settlementId`),
|
|
3096
|
+
KEY `settlementwindowcontent_settlementmodelid_foreign` (`SettlementModelId`),
|
|
3097
|
+
CONSTRAINT `settlementwindowcontent_currencyid_foreign` FOREIGN KEY (`currencyId`) REFERENCES `currency` (`currencyId`),
|
|
3098
|
+
CONSTRAINT `settlementwindowcontent_currentstatechangeid_foreign` FOREIGN KEY (`currentStateChangeId`) REFERENCES `settlementWindowContentStateChange` (`settlementWindowContentStateChangeId`),
|
|
3099
|
+
CONSTRAINT `settlementwindowcontent_ledgeraccounttypeid_foreign` FOREIGN KEY (`ledgerAccountTypeId`) REFERENCES `ledgerAccountType` (`ledgerAccountTypeId`),
|
|
3100
|
+
CONSTRAINT `settlementwindowcontent_settlementid_foreign` FOREIGN KEY (`settlementId`) REFERENCES `settlement` (`settlementId`),
|
|
3101
|
+
CONSTRAINT `settlementwindowcontent_settlementmodelid_foreign` FOREIGN KEY (`SettlementModelId`) REFERENCES `settlementModel` (`settlementModelId`),
|
|
3102
|
+
CONSTRAINT `settlementwindowcontent_settlementwindowid_foreign` FOREIGN KEY (`settlementWindowId`) REFERENCES `settlementWindow` (`settlementWindowId`)
|
|
3103
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3104
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3105
|
+
|
|
3106
|
+
--
|
|
3107
|
+
-- Dumping data for table `settlementWindowContent`
|
|
3108
|
+
--
|
|
3109
|
+
|
|
3110
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3111
|
+
LOCK TABLES `settlementWindowContent` WRITE;
|
|
3112
|
+
/*!40000 ALTER TABLE `settlementWindowContent` DISABLE KEYS */;
|
|
3113
|
+
/*!40000 ALTER TABLE `settlementWindowContent` ENABLE KEYS */;
|
|
3114
|
+
UNLOCK TABLES;
|
|
3115
|
+
COMMIT;
|
|
3116
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3117
|
+
|
|
3118
|
+
--
|
|
3119
|
+
-- Table structure for table `settlementWindowContentStateChange`
|
|
3120
|
+
--
|
|
3121
|
+
|
|
3122
|
+
DROP TABLE IF EXISTS `settlementWindowContentStateChange`;
|
|
3123
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3124
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3125
|
+
CREATE TABLE `settlementWindowContentStateChange` (
|
|
3126
|
+
`settlementWindowContentStateChangeId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
3127
|
+
`settlementWindowContentId` bigint(20) unsigned NOT NULL,
|
|
3128
|
+
`settlementWindowStateId` varchar(50) NOT NULL,
|
|
3129
|
+
`reason` varchar(512) DEFAULT NULL,
|
|
3130
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3131
|
+
PRIMARY KEY (`settlementWindowContentStateChangeId`),
|
|
3132
|
+
KEY `swcsc_settlementwindowcontentid_index` (`settlementWindowContentId`),
|
|
3133
|
+
KEY `swcsc_settlementwindowstateid_index` (`settlementWindowStateId`),
|
|
3134
|
+
CONSTRAINT `swc_settlementwindowcontentid_foreign` FOREIGN KEY (`settlementWindowContentId`) REFERENCES `settlementWindowContent` (`settlementWindowContentId`),
|
|
3135
|
+
CONSTRAINT `sws1_settlementwindowstateid_foreign` FOREIGN KEY (`settlementWindowStateId`) REFERENCES `settlementWindowState` (`settlementWindowStateId`)
|
|
3136
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3137
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3138
|
+
|
|
3139
|
+
--
|
|
3140
|
+
-- Dumping data for table `settlementWindowContentStateChange`
|
|
3141
|
+
--
|
|
3142
|
+
|
|
3143
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3144
|
+
LOCK TABLES `settlementWindowContentStateChange` WRITE;
|
|
3145
|
+
/*!40000 ALTER TABLE `settlementWindowContentStateChange` DISABLE KEYS */;
|
|
3146
|
+
/*!40000 ALTER TABLE `settlementWindowContentStateChange` ENABLE KEYS */;
|
|
3147
|
+
UNLOCK TABLES;
|
|
3148
|
+
COMMIT;
|
|
3149
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3150
|
+
|
|
3151
|
+
--
|
|
3152
|
+
-- Table structure for table `settlementWindowState`
|
|
3153
|
+
--
|
|
3154
|
+
|
|
3155
|
+
DROP TABLE IF EXISTS `settlementWindowState`;
|
|
3156
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3157
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3158
|
+
CREATE TABLE `settlementWindowState` (
|
|
3159
|
+
`settlementWindowStateId` varchar(50) NOT NULL,
|
|
3160
|
+
`enumeration` varchar(50) NOT NULL,
|
|
3161
|
+
`description` varchar(512) DEFAULT NULL,
|
|
3162
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
3163
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3164
|
+
PRIMARY KEY (`settlementWindowStateId`)
|
|
3165
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3166
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3167
|
+
|
|
3168
|
+
--
|
|
3169
|
+
-- Dumping data for table `settlementWindowState`
|
|
3170
|
+
--
|
|
3171
|
+
|
|
3172
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3173
|
+
LOCK TABLES `settlementWindowState` WRITE;
|
|
3174
|
+
/*!40000 ALTER TABLE `settlementWindowState` DISABLE KEYS */;
|
|
3175
|
+
/*!40000 ALTER TABLE `settlementWindowState` ENABLE KEYS */;
|
|
3176
|
+
UNLOCK TABLES;
|
|
3177
|
+
COMMIT;
|
|
3178
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3179
|
+
|
|
3180
|
+
--
|
|
3181
|
+
-- Table structure for table `settlementWindowStateChange`
|
|
3182
|
+
--
|
|
3183
|
+
|
|
3184
|
+
DROP TABLE IF EXISTS `settlementWindowStateChange`;
|
|
3185
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3186
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3187
|
+
CREATE TABLE `settlementWindowStateChange` (
|
|
3188
|
+
`settlementWindowStateChangeId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
3189
|
+
`settlementWindowId` bigint(20) unsigned NOT NULL,
|
|
3190
|
+
`settlementWindowStateId` varchar(50) NOT NULL,
|
|
3191
|
+
`reason` varchar(512) DEFAULT NULL,
|
|
3192
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3193
|
+
PRIMARY KEY (`settlementWindowStateChangeId`),
|
|
3194
|
+
KEY `settlementwindowstatechange_settlementwindowid_index` (`settlementWindowId`),
|
|
3195
|
+
KEY `settlementwindowstatechange_settlementwindowstateid_index` (`settlementWindowStateId`),
|
|
3196
|
+
CONSTRAINT `settlementwindowstatechange_settlementwindowid_foreign` FOREIGN KEY (`settlementWindowId`) REFERENCES `settlementWindow` (`settlementWindowId`),
|
|
3197
|
+
CONSTRAINT `settlementwindowstatechange_settlementwindowstateid_foreign` FOREIGN KEY (`settlementWindowStateId`) REFERENCES `settlementWindowState` (`settlementWindowStateId`)
|
|
3198
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3199
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3200
|
+
|
|
3201
|
+
--
|
|
3202
|
+
-- Dumping data for table `settlementWindowStateChange`
|
|
3203
|
+
--
|
|
3204
|
+
|
|
3205
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3206
|
+
LOCK TABLES `settlementWindowStateChange` WRITE;
|
|
3207
|
+
/*!40000 ALTER TABLE `settlementWindowStateChange` DISABLE KEYS */;
|
|
3208
|
+
/*!40000 ALTER TABLE `settlementWindowStateChange` ENABLE KEYS */;
|
|
3209
|
+
UNLOCK TABLES;
|
|
3210
|
+
COMMIT;
|
|
3211
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3212
|
+
|
|
3213
|
+
--
|
|
3214
|
+
-- Table structure for table `token`
|
|
3215
|
+
--
|
|
3216
|
+
|
|
3217
|
+
DROP TABLE IF EXISTS `token`;
|
|
3218
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3219
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3220
|
+
CREATE TABLE `token` (
|
|
3221
|
+
`tokenId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
3222
|
+
`participantId` int(10) unsigned NOT NULL,
|
|
3223
|
+
`value` varchar(256) NOT NULL,
|
|
3224
|
+
`expiration` bigint(20) DEFAULT NULL,
|
|
3225
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3226
|
+
PRIMARY KEY (`tokenId`),
|
|
3227
|
+
UNIQUE KEY `token_value_unique` (`value`),
|
|
3228
|
+
KEY `token_participantid_index` (`participantId`),
|
|
3229
|
+
CONSTRAINT `token_participantid_foreign` FOREIGN KEY (`participantId`) REFERENCES `participant` (`participantId`)
|
|
3230
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3231
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3232
|
+
|
|
3233
|
+
--
|
|
3234
|
+
-- Dumping data for table `token`
|
|
3235
|
+
--
|
|
3236
|
+
|
|
3237
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3238
|
+
LOCK TABLES `token` WRITE;
|
|
3239
|
+
/*!40000 ALTER TABLE `token` DISABLE KEYS */;
|
|
3240
|
+
/*!40000 ALTER TABLE `token` ENABLE KEYS */;
|
|
3241
|
+
UNLOCK TABLES;
|
|
3242
|
+
COMMIT;
|
|
3243
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3244
|
+
|
|
3245
|
+
--
|
|
3246
|
+
-- Table structure for table `transactionInitiator`
|
|
3247
|
+
--
|
|
3248
|
+
|
|
3249
|
+
DROP TABLE IF EXISTS `transactionInitiator`;
|
|
3250
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3251
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3252
|
+
CREATE TABLE `transactionInitiator` (
|
|
3253
|
+
`transactionInitiatorId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
3254
|
+
`name` varchar(256) NOT NULL,
|
|
3255
|
+
`description` varchar(1024) DEFAULT NULL,
|
|
3256
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
3257
|
+
PRIMARY KEY (`transactionInitiatorId`),
|
|
3258
|
+
UNIQUE KEY `transactioninitiator_name_unique` (`name`)
|
|
3259
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3260
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3261
|
+
|
|
3262
|
+
--
|
|
3263
|
+
-- Dumping data for table `transactionInitiator`
|
|
3264
|
+
--
|
|
3265
|
+
|
|
3266
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3267
|
+
LOCK TABLES `transactionInitiator` WRITE;
|
|
3268
|
+
/*!40000 ALTER TABLE `transactionInitiator` DISABLE KEYS */;
|
|
3269
|
+
/*!40000 ALTER TABLE `transactionInitiator` ENABLE KEYS */;
|
|
3270
|
+
UNLOCK TABLES;
|
|
3271
|
+
COMMIT;
|
|
3272
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3273
|
+
|
|
3274
|
+
--
|
|
3275
|
+
-- Table structure for table `transactionInitiatorType`
|
|
3276
|
+
--
|
|
3277
|
+
|
|
3278
|
+
DROP TABLE IF EXISTS `transactionInitiatorType`;
|
|
3279
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3280
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3281
|
+
CREATE TABLE `transactionInitiatorType` (
|
|
3282
|
+
`transactionInitiatorTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
3283
|
+
`name` varchar(256) NOT NULL,
|
|
3284
|
+
`description` varchar(1024) DEFAULT NULL,
|
|
3285
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
3286
|
+
PRIMARY KEY (`transactionInitiatorTypeId`),
|
|
3287
|
+
UNIQUE KEY `transactioninitiatortype_name_unique` (`name`)
|
|
3288
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3289
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3290
|
+
|
|
3291
|
+
--
|
|
3292
|
+
-- Dumping data for table `transactionInitiatorType`
|
|
3293
|
+
--
|
|
3294
|
+
|
|
3295
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3296
|
+
LOCK TABLES `transactionInitiatorType` WRITE;
|
|
3297
|
+
/*!40000 ALTER TABLE `transactionInitiatorType` DISABLE KEYS */;
|
|
3298
|
+
/*!40000 ALTER TABLE `transactionInitiatorType` ENABLE KEYS */;
|
|
3299
|
+
UNLOCK TABLES;
|
|
3300
|
+
COMMIT;
|
|
3301
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3302
|
+
|
|
3303
|
+
--
|
|
3304
|
+
-- Table structure for table `transactionReference`
|
|
3305
|
+
--
|
|
3306
|
+
|
|
3307
|
+
DROP TABLE IF EXISTS `transactionReference`;
|
|
3308
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3309
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3310
|
+
CREATE TABLE `transactionReference` (
|
|
3311
|
+
`transactionReferenceId` varchar(36) NOT NULL COMMENT 'Common ID (decided by the Payer FSP) between the FSPs for the future transaction object',
|
|
3312
|
+
`quoteId` varchar(36) DEFAULT NULL COMMENT 'Common ID between the FSPs for the quote object, decided by the Payer FSP',
|
|
3313
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System row creation timestamp',
|
|
3314
|
+
PRIMARY KEY (`transactionReferenceId`),
|
|
3315
|
+
KEY `transactionreference_quoteid_index` (`quoteId`),
|
|
3316
|
+
CONSTRAINT `transactionreference_quoteid_foreign` FOREIGN KEY (`quoteId`) REFERENCES `quoteDuplicateCheck` (`quoteId`)
|
|
3317
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3318
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3319
|
+
|
|
3320
|
+
--
|
|
3321
|
+
-- Dumping data for table `transactionReference`
|
|
3322
|
+
--
|
|
3323
|
+
|
|
3324
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3325
|
+
LOCK TABLES `transactionReference` WRITE;
|
|
3326
|
+
/*!40000 ALTER TABLE `transactionReference` DISABLE KEYS */;
|
|
3327
|
+
/*!40000 ALTER TABLE `transactionReference` ENABLE KEYS */;
|
|
3328
|
+
UNLOCK TABLES;
|
|
3329
|
+
COMMIT;
|
|
3330
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3331
|
+
|
|
3332
|
+
--
|
|
3333
|
+
-- Table structure for table `transactionScenario`
|
|
3334
|
+
--
|
|
3335
|
+
|
|
3336
|
+
DROP TABLE IF EXISTS `transactionScenario`;
|
|
3337
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3338
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3339
|
+
CREATE TABLE `transactionScenario` (
|
|
3340
|
+
`transactionScenarioId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
3341
|
+
`name` varchar(256) NOT NULL,
|
|
3342
|
+
`description` varchar(1024) DEFAULT NULL,
|
|
3343
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
3344
|
+
PRIMARY KEY (`transactionScenarioId`),
|
|
3345
|
+
UNIQUE KEY `transactionscenario_name_unique` (`name`)
|
|
3346
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3347
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3348
|
+
|
|
3349
|
+
--
|
|
3350
|
+
-- Dumping data for table `transactionScenario`
|
|
3351
|
+
--
|
|
3352
|
+
|
|
3353
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3354
|
+
LOCK TABLES `transactionScenario` WRITE;
|
|
3355
|
+
/*!40000 ALTER TABLE `transactionScenario` DISABLE KEYS */;
|
|
3356
|
+
/*!40000 ALTER TABLE `transactionScenario` ENABLE KEYS */;
|
|
3357
|
+
UNLOCK TABLES;
|
|
3358
|
+
COMMIT;
|
|
3359
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3360
|
+
|
|
3361
|
+
--
|
|
3362
|
+
-- Table structure for table `transactionSubScenario`
|
|
3363
|
+
--
|
|
3364
|
+
|
|
3365
|
+
DROP TABLE IF EXISTS `transactionSubScenario`;
|
|
3366
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3367
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3368
|
+
CREATE TABLE `transactionSubScenario` (
|
|
3369
|
+
`transactionSubScenarioId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
3370
|
+
`name` varchar(256) NOT NULL,
|
|
3371
|
+
`description` varchar(1024) DEFAULT NULL COMMENT 'Possible sub-scenario, defined locally within the scheme',
|
|
3372
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'System dateTime stamp pertaining to the inserted record',
|
|
3373
|
+
PRIMARY KEY (`transactionSubScenarioId`)
|
|
3374
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3375
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3376
|
+
|
|
3377
|
+
--
|
|
3378
|
+
-- Dumping data for table `transactionSubScenario`
|
|
3379
|
+
--
|
|
3380
|
+
|
|
3381
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3382
|
+
LOCK TABLES `transactionSubScenario` WRITE;
|
|
3383
|
+
/*!40000 ALTER TABLE `transactionSubScenario` DISABLE KEYS */;
|
|
3384
|
+
/*!40000 ALTER TABLE `transactionSubScenario` ENABLE KEYS */;
|
|
3385
|
+
UNLOCK TABLES;
|
|
3386
|
+
COMMIT;
|
|
3387
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3388
|
+
|
|
3389
|
+
--
|
|
3390
|
+
-- Table structure for table `transfer`
|
|
3391
|
+
--
|
|
3392
|
+
|
|
3393
|
+
DROP TABLE IF EXISTS `transfer`;
|
|
3394
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3395
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3396
|
+
CREATE TABLE `transfer` (
|
|
3397
|
+
`transferId` varchar(36) NOT NULL,
|
|
3398
|
+
`amount` decimal(18,4) NOT NULL,
|
|
3399
|
+
`currencyId` varchar(3) NOT NULL,
|
|
3400
|
+
`ilpCondition` varchar(256) NOT NULL,
|
|
3401
|
+
`expirationDate` datetime NOT NULL,
|
|
3402
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3403
|
+
PRIMARY KEY (`transferId`),
|
|
3404
|
+
KEY `transfer_currencyid_index` (`currencyId`),
|
|
3405
|
+
CONSTRAINT `transfer_currencyid_foreign` FOREIGN KEY (`currencyId`) REFERENCES `currency` (`currencyId`),
|
|
3406
|
+
CONSTRAINT `transfer_transferid_foreign` FOREIGN KEY (`transferId`) REFERENCES `transferDuplicateCheck` (`transferId`)
|
|
3407
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3408
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3409
|
+
|
|
3410
|
+
--
|
|
3411
|
+
-- Dumping data for table `transfer`
|
|
3412
|
+
--
|
|
3413
|
+
|
|
3414
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3415
|
+
LOCK TABLES `transfer` WRITE;
|
|
3416
|
+
/*!40000 ALTER TABLE `transfer` DISABLE KEYS */;
|
|
3417
|
+
/*!40000 ALTER TABLE `transfer` ENABLE KEYS */;
|
|
3418
|
+
UNLOCK TABLES;
|
|
3419
|
+
COMMIT;
|
|
3420
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3421
|
+
|
|
3422
|
+
--
|
|
3423
|
+
-- Table structure for table `transferDuplicateCheck`
|
|
3424
|
+
--
|
|
3425
|
+
|
|
3426
|
+
DROP TABLE IF EXISTS `transferDuplicateCheck`;
|
|
3427
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3428
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3429
|
+
CREATE TABLE `transferDuplicateCheck` (
|
|
3430
|
+
`transferId` varchar(36) NOT NULL,
|
|
3431
|
+
`hash` varchar(256) NOT NULL,
|
|
3432
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3433
|
+
PRIMARY KEY (`transferId`)
|
|
3434
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3435
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3436
|
+
|
|
3437
|
+
--
|
|
3438
|
+
-- Dumping data for table `transferDuplicateCheck`
|
|
3439
|
+
--
|
|
3440
|
+
|
|
3441
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3442
|
+
LOCK TABLES `transferDuplicateCheck` WRITE;
|
|
3443
|
+
/*!40000 ALTER TABLE `transferDuplicateCheck` DISABLE KEYS */;
|
|
3444
|
+
/*!40000 ALTER TABLE `transferDuplicateCheck` ENABLE KEYS */;
|
|
3445
|
+
UNLOCK TABLES;
|
|
3446
|
+
COMMIT;
|
|
3447
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3448
|
+
|
|
3449
|
+
--
|
|
3450
|
+
-- Table structure for table `transferError`
|
|
3451
|
+
--
|
|
3452
|
+
|
|
3453
|
+
DROP TABLE IF EXISTS `transferError`;
|
|
3454
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3455
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3456
|
+
CREATE TABLE `transferError` (
|
|
3457
|
+
`transferId` varchar(36) NOT NULL,
|
|
3458
|
+
`transferStateChangeId` bigint(20) unsigned NOT NULL,
|
|
3459
|
+
`errorCode` int(10) unsigned NOT NULL,
|
|
3460
|
+
`errorDescription` varchar(128) NOT NULL,
|
|
3461
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3462
|
+
PRIMARY KEY (`transferId`),
|
|
3463
|
+
KEY `transfererror_transferstatechangeid_foreign` (`transferStateChangeId`),
|
|
3464
|
+
CONSTRAINT `transfererror_transferstatechangeid_foreign` FOREIGN KEY (`transferStateChangeId`) REFERENCES `transferStateChange` (`transferStateChangeId`)
|
|
3465
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3466
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3467
|
+
|
|
3468
|
+
--
|
|
3469
|
+
-- Dumping data for table `transferError`
|
|
3470
|
+
--
|
|
3471
|
+
|
|
3472
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3473
|
+
LOCK TABLES `transferError` WRITE;
|
|
3474
|
+
/*!40000 ALTER TABLE `transferError` DISABLE KEYS */;
|
|
3475
|
+
/*!40000 ALTER TABLE `transferError` ENABLE KEYS */;
|
|
3476
|
+
UNLOCK TABLES;
|
|
3477
|
+
COMMIT;
|
|
3478
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3479
|
+
|
|
3480
|
+
--
|
|
3481
|
+
-- Table structure for table `transferErrorDuplicateCheck`
|
|
3482
|
+
--
|
|
3483
|
+
|
|
3484
|
+
DROP TABLE IF EXISTS `transferErrorDuplicateCheck`;
|
|
3485
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3486
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3487
|
+
CREATE TABLE `transferErrorDuplicateCheck` (
|
|
3488
|
+
`transferId` varchar(36) NOT NULL,
|
|
3489
|
+
`hash` varchar(256) DEFAULT NULL,
|
|
3490
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3491
|
+
PRIMARY KEY (`transferId`),
|
|
3492
|
+
CONSTRAINT `transfererrorduplicatecheck_transferid_foreign` FOREIGN KEY (`transferId`) REFERENCES `transfer` (`transferId`)
|
|
3493
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3494
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3495
|
+
|
|
3496
|
+
--
|
|
3497
|
+
-- Dumping data for table `transferErrorDuplicateCheck`
|
|
3498
|
+
--
|
|
3499
|
+
|
|
3500
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3501
|
+
LOCK TABLES `transferErrorDuplicateCheck` WRITE;
|
|
3502
|
+
/*!40000 ALTER TABLE `transferErrorDuplicateCheck` DISABLE KEYS */;
|
|
3503
|
+
/*!40000 ALTER TABLE `transferErrorDuplicateCheck` ENABLE KEYS */;
|
|
3504
|
+
UNLOCK TABLES;
|
|
3505
|
+
COMMIT;
|
|
3506
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3507
|
+
|
|
3508
|
+
--
|
|
3509
|
+
-- Table structure for table `transferExtension`
|
|
3510
|
+
--
|
|
3511
|
+
|
|
3512
|
+
DROP TABLE IF EXISTS `transferExtension`;
|
|
3513
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3514
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3515
|
+
CREATE TABLE `transferExtension` (
|
|
3516
|
+
`transferExtensionId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
3517
|
+
`transferId` varchar(36) NOT NULL,
|
|
3518
|
+
`key` varchar(128) NOT NULL,
|
|
3519
|
+
`value` text NOT NULL,
|
|
3520
|
+
`isFulfilment` tinyint(1) NOT NULL DEFAULT 0,
|
|
3521
|
+
`isError` tinyint(1) NOT NULL DEFAULT 0,
|
|
3522
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3523
|
+
PRIMARY KEY (`transferExtensionId`),
|
|
3524
|
+
KEY `transferextension_transferid_foreign` (`transferId`),
|
|
3525
|
+
CONSTRAINT `transferextension_transferid_foreign` FOREIGN KEY (`transferId`) REFERENCES `transfer` (`transferId`)
|
|
3526
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3527
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3528
|
+
|
|
3529
|
+
--
|
|
3530
|
+
-- Dumping data for table `transferExtension`
|
|
3531
|
+
--
|
|
3532
|
+
|
|
3533
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3534
|
+
LOCK TABLES `transferExtension` WRITE;
|
|
3535
|
+
/*!40000 ALTER TABLE `transferExtension` DISABLE KEYS */;
|
|
3536
|
+
/*!40000 ALTER TABLE `transferExtension` ENABLE KEYS */;
|
|
3537
|
+
UNLOCK TABLES;
|
|
3538
|
+
COMMIT;
|
|
3539
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3540
|
+
|
|
3541
|
+
--
|
|
3542
|
+
-- Table structure for table `transferForwarded`
|
|
3543
|
+
--
|
|
3544
|
+
|
|
3545
|
+
DROP TABLE IF EXISTS `transferForwarded`;
|
|
3546
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3547
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3548
|
+
CREATE TABLE `transferForwarded` (
|
|
3549
|
+
`transferForwardedId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
3550
|
+
`transferId` varchar(36) NOT NULL,
|
|
3551
|
+
`expirationDate` datetime NOT NULL,
|
|
3552
|
+
`attemptCount` int(11) NOT NULL DEFAULT 0,
|
|
3553
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3554
|
+
PRIMARY KEY (`transferForwardedId`),
|
|
3555
|
+
UNIQUE KEY `transferforwarded_transferid_unique` (`transferId`),
|
|
3556
|
+
KEY `transferforwarded_attemptcount_index` (`attemptCount`),
|
|
3557
|
+
KEY `transferforwarded_expirationdate_index` (`expirationDate`),
|
|
3558
|
+
CONSTRAINT `transferforwarded_transferid_foreign` FOREIGN KEY (`transferId`) REFERENCES `transfer` (`transferId`)
|
|
3559
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3560
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3561
|
+
|
|
3562
|
+
--
|
|
3563
|
+
-- Dumping data for table `transferForwarded`
|
|
3564
|
+
--
|
|
3565
|
+
|
|
3566
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3567
|
+
LOCK TABLES `transferForwarded` WRITE;
|
|
3568
|
+
/*!40000 ALTER TABLE `transferForwarded` DISABLE KEYS */;
|
|
3569
|
+
/*!40000 ALTER TABLE `transferForwarded` ENABLE KEYS */;
|
|
3570
|
+
UNLOCK TABLES;
|
|
3571
|
+
COMMIT;
|
|
3572
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3573
|
+
|
|
3574
|
+
--
|
|
3575
|
+
-- Table structure for table `transferFulfilment`
|
|
3576
|
+
--
|
|
3577
|
+
|
|
3578
|
+
DROP TABLE IF EXISTS `transferFulfilment`;
|
|
3579
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3580
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3581
|
+
CREATE TABLE `transferFulfilment` (
|
|
3582
|
+
`transferId` varchar(36) NOT NULL,
|
|
3583
|
+
`ilpFulfilment` varchar(256) DEFAULT NULL,
|
|
3584
|
+
`completedDate` datetime NOT NULL,
|
|
3585
|
+
`isValid` tinyint(1) DEFAULT NULL,
|
|
3586
|
+
`settlementWindowId` bigint(20) unsigned DEFAULT NULL,
|
|
3587
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3588
|
+
PRIMARY KEY (`transferId`),
|
|
3589
|
+
KEY `transferfulfilment_settlementwindowid_foreign` (`settlementWindowId`),
|
|
3590
|
+
CONSTRAINT `transferfulfilment_settlementwindowid_foreign` FOREIGN KEY (`settlementWindowId`) REFERENCES `settlementWindow` (`settlementWindowId`),
|
|
3591
|
+
CONSTRAINT `transferfulfilment_transferid_foreign` FOREIGN KEY (`transferId`) REFERENCES `transferFulfilmentDuplicateCheck` (`transferId`)
|
|
3592
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3593
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3594
|
+
|
|
3595
|
+
--
|
|
3596
|
+
-- Dumping data for table `transferFulfilment`
|
|
3597
|
+
--
|
|
3598
|
+
|
|
3599
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3600
|
+
LOCK TABLES `transferFulfilment` WRITE;
|
|
3601
|
+
/*!40000 ALTER TABLE `transferFulfilment` DISABLE KEYS */;
|
|
3602
|
+
/*!40000 ALTER TABLE `transferFulfilment` ENABLE KEYS */;
|
|
3603
|
+
UNLOCK TABLES;
|
|
3604
|
+
COMMIT;
|
|
3605
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3606
|
+
|
|
3607
|
+
--
|
|
3608
|
+
-- Table structure for table `transferFulfilmentDuplicateCheck`
|
|
3609
|
+
--
|
|
3610
|
+
|
|
3611
|
+
DROP TABLE IF EXISTS `transferFulfilmentDuplicateCheck`;
|
|
3612
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3613
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3614
|
+
CREATE TABLE `transferFulfilmentDuplicateCheck` (
|
|
3615
|
+
`transferId` varchar(36) NOT NULL,
|
|
3616
|
+
`hash` varchar(256) DEFAULT NULL,
|
|
3617
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3618
|
+
PRIMARY KEY (`transferId`),
|
|
3619
|
+
CONSTRAINT `transferfulfilmentduplicatecheck_transferid_foreign` FOREIGN KEY (`transferId`) REFERENCES `transfer` (`transferId`)
|
|
3620
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3621
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3622
|
+
|
|
3623
|
+
--
|
|
3624
|
+
-- Dumping data for table `transferFulfilmentDuplicateCheck`
|
|
3625
|
+
--
|
|
3626
|
+
|
|
3627
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3628
|
+
LOCK TABLES `transferFulfilmentDuplicateCheck` WRITE;
|
|
3629
|
+
/*!40000 ALTER TABLE `transferFulfilmentDuplicateCheck` DISABLE KEYS */;
|
|
3630
|
+
/*!40000 ALTER TABLE `transferFulfilmentDuplicateCheck` ENABLE KEYS */;
|
|
3631
|
+
UNLOCK TABLES;
|
|
3632
|
+
COMMIT;
|
|
3633
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3634
|
+
|
|
3635
|
+
--
|
|
3636
|
+
-- Table structure for table `transferParticipant`
|
|
3637
|
+
--
|
|
3638
|
+
|
|
3639
|
+
DROP TABLE IF EXISTS `transferParticipant`;
|
|
3640
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3641
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3642
|
+
CREATE TABLE `transferParticipant` (
|
|
3643
|
+
`transferParticipantId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
3644
|
+
`transferId` varchar(36) NOT NULL,
|
|
3645
|
+
`participantCurrencyId` int(10) unsigned DEFAULT NULL,
|
|
3646
|
+
`transferParticipantRoleTypeId` int(10) unsigned NOT NULL,
|
|
3647
|
+
`ledgerEntryTypeId` int(10) unsigned NOT NULL,
|
|
3648
|
+
`amount` decimal(18,4) NOT NULL,
|
|
3649
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3650
|
+
`participantId` int(10) unsigned NOT NULL,
|
|
3651
|
+
`externalParticipantId` bigint(20) unsigned DEFAULT NULL,
|
|
3652
|
+
PRIMARY KEY (`transferParticipantId`),
|
|
3653
|
+
KEY `transferparticipant_transferid_index` (`transferId`),
|
|
3654
|
+
KEY `transferparticipant_participantcurrencyid_index` (`participantCurrencyId`),
|
|
3655
|
+
KEY `transferparticipant_transferparticipantroletypeid_index` (`transferParticipantRoleTypeId`),
|
|
3656
|
+
KEY `transferparticipant_ledgerentrytypeid_index` (`ledgerEntryTypeId`),
|
|
3657
|
+
KEY `getTransferInfoToChangePosition` (`transferId`,`transferParticipantRoleTypeId`,`ledgerEntryTypeId`),
|
|
3658
|
+
KEY `transferparticipant_participantid_index` (`participantId`),
|
|
3659
|
+
KEY `transferparticipant_externalparticipantid_index` (`externalParticipantId`),
|
|
3660
|
+
CONSTRAINT `transferparticipant_externalparticipantid_foreign` FOREIGN KEY (`externalParticipantId`) REFERENCES `externalParticipant` (`externalParticipantId`),
|
|
3661
|
+
CONSTRAINT `transferparticipant_ledgerentrytypeid_foreign` FOREIGN KEY (`ledgerEntryTypeId`) REFERENCES `ledgerEntryType` (`ledgerEntryTypeId`),
|
|
3662
|
+
CONSTRAINT `transferparticipant_participantcurrencyid_foreign` FOREIGN KEY (`participantCurrencyId`) REFERENCES `participantCurrency` (`participantCurrencyId`),
|
|
3663
|
+
CONSTRAINT `transferparticipant_transferid_foreign` FOREIGN KEY (`transferId`) REFERENCES `transfer` (`transferId`),
|
|
3664
|
+
CONSTRAINT `transferparticipant_transferparticipantroletypeid_foreign` FOREIGN KEY (`transferParticipantRoleTypeId`) REFERENCES `transferParticipantRoleType` (`transferParticipantRoleTypeId`)
|
|
3665
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3666
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3667
|
+
|
|
3668
|
+
--
|
|
3669
|
+
-- Dumping data for table `transferParticipant`
|
|
3670
|
+
--
|
|
3671
|
+
|
|
3672
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3673
|
+
LOCK TABLES `transferParticipant` WRITE;
|
|
3674
|
+
/*!40000 ALTER TABLE `transferParticipant` DISABLE KEYS */;
|
|
3675
|
+
/*!40000 ALTER TABLE `transferParticipant` ENABLE KEYS */;
|
|
3676
|
+
UNLOCK TABLES;
|
|
3677
|
+
COMMIT;
|
|
3678
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3679
|
+
|
|
3680
|
+
--
|
|
3681
|
+
-- Table structure for table `transferParticipantRoleType`
|
|
3682
|
+
--
|
|
3683
|
+
|
|
3684
|
+
DROP TABLE IF EXISTS `transferParticipantRoleType`;
|
|
3685
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3686
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3687
|
+
CREATE TABLE `transferParticipantRoleType` (
|
|
3688
|
+
`transferParticipantRoleTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
3689
|
+
`name` varchar(50) NOT NULL,
|
|
3690
|
+
`description` varchar(512) DEFAULT NULL,
|
|
3691
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
3692
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3693
|
+
PRIMARY KEY (`transferParticipantRoleTypeId`),
|
|
3694
|
+
UNIQUE KEY `transferparticipantroletype_name_unique` (`name`)
|
|
3695
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3696
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3697
|
+
|
|
3698
|
+
--
|
|
3699
|
+
-- Dumping data for table `transferParticipantRoleType`
|
|
3700
|
+
--
|
|
3701
|
+
|
|
3702
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3703
|
+
LOCK TABLES `transferParticipantRoleType` WRITE;
|
|
3704
|
+
/*!40000 ALTER TABLE `transferParticipantRoleType` DISABLE KEYS */;
|
|
3705
|
+
/*!40000 ALTER TABLE `transferParticipantRoleType` ENABLE KEYS */;
|
|
3706
|
+
UNLOCK TABLES;
|
|
3707
|
+
COMMIT;
|
|
3708
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3709
|
+
|
|
3710
|
+
--
|
|
3711
|
+
-- Table structure for table `transferRules`
|
|
3712
|
+
--
|
|
3713
|
+
|
|
3714
|
+
DROP TABLE IF EXISTS `transferRules`;
|
|
3715
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3716
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3717
|
+
CREATE TABLE `transferRules` (
|
|
3718
|
+
`transferRulesId` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
3719
|
+
`name` varchar(128) NOT NULL,
|
|
3720
|
+
`description` varchar(512) DEFAULT NULL,
|
|
3721
|
+
`rule` text NOT NULL,
|
|
3722
|
+
`enabled` tinyint(1) NOT NULL DEFAULT 1,
|
|
3723
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3724
|
+
PRIMARY KEY (`transferRulesId`)
|
|
3725
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3726
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3727
|
+
|
|
3728
|
+
--
|
|
3729
|
+
-- Dumping data for table `transferRules`
|
|
3730
|
+
--
|
|
3731
|
+
|
|
3732
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3733
|
+
LOCK TABLES `transferRules` WRITE;
|
|
3734
|
+
/*!40000 ALTER TABLE `transferRules` DISABLE KEYS */;
|
|
3735
|
+
/*!40000 ALTER TABLE `transferRules` ENABLE KEYS */;
|
|
3736
|
+
UNLOCK TABLES;
|
|
3737
|
+
COMMIT;
|
|
3738
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3739
|
+
|
|
3740
|
+
--
|
|
3741
|
+
-- Table structure for table `transferState`
|
|
3742
|
+
--
|
|
3743
|
+
|
|
3744
|
+
DROP TABLE IF EXISTS `transferState`;
|
|
3745
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3746
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3747
|
+
CREATE TABLE `transferState` (
|
|
3748
|
+
`transferStateId` varchar(50) NOT NULL,
|
|
3749
|
+
`enumeration` varchar(50) NOT NULL COMMENT 'transferState associated to the Mojaloop API',
|
|
3750
|
+
`description` varchar(512) DEFAULT NULL,
|
|
3751
|
+
`isActive` tinyint(1) NOT NULL DEFAULT 1,
|
|
3752
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3753
|
+
PRIMARY KEY (`transferStateId`)
|
|
3754
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3755
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3756
|
+
|
|
3757
|
+
--
|
|
3758
|
+
-- Dumping data for table `transferState`
|
|
3759
|
+
--
|
|
3760
|
+
|
|
3761
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3762
|
+
LOCK TABLES `transferState` WRITE;
|
|
3763
|
+
/*!40000 ALTER TABLE `transferState` DISABLE KEYS */;
|
|
3764
|
+
/*!40000 ALTER TABLE `transferState` ENABLE KEYS */;
|
|
3765
|
+
UNLOCK TABLES;
|
|
3766
|
+
COMMIT;
|
|
3767
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3768
|
+
|
|
3769
|
+
--
|
|
3770
|
+
-- Table structure for table `transferStateChange`
|
|
3771
|
+
--
|
|
3772
|
+
|
|
3773
|
+
DROP TABLE IF EXISTS `transferStateChange`;
|
|
3774
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3775
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3776
|
+
CREATE TABLE `transferStateChange` (
|
|
3777
|
+
`transferStateChangeId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
3778
|
+
`transferId` varchar(36) NOT NULL,
|
|
3779
|
+
`transferStateId` varchar(50) NOT NULL,
|
|
3780
|
+
`reason` varchar(512) DEFAULT NULL,
|
|
3781
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3782
|
+
PRIMARY KEY (`transferStateChangeId`),
|
|
3783
|
+
KEY `transferstatechange_transferid_index` (`transferId`),
|
|
3784
|
+
KEY `transferstatechange_transferstateid_index` (`transferStateId`),
|
|
3785
|
+
CONSTRAINT `transferstatechange_transferid_foreign` FOREIGN KEY (`transferId`) REFERENCES `transfer` (`transferId`),
|
|
3786
|
+
CONSTRAINT `transferstatechange_transferstateid_foreign` FOREIGN KEY (`transferStateId`) REFERENCES `transferState` (`transferStateId`)
|
|
3787
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3788
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3789
|
+
|
|
3790
|
+
--
|
|
3791
|
+
-- Dumping data for table `transferStateChange`
|
|
3792
|
+
--
|
|
3793
|
+
|
|
3794
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3795
|
+
LOCK TABLES `transferStateChange` WRITE;
|
|
3796
|
+
/*!40000 ALTER TABLE `transferStateChange` DISABLE KEYS */;
|
|
3797
|
+
/*!40000 ALTER TABLE `transferStateChange` ENABLE KEYS */;
|
|
3798
|
+
UNLOCK TABLES;
|
|
3799
|
+
COMMIT;
|
|
3800
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3801
|
+
|
|
3802
|
+
--
|
|
3803
|
+
-- Table structure for table `transferTimeout`
|
|
3804
|
+
--
|
|
3805
|
+
|
|
3806
|
+
DROP TABLE IF EXISTS `transferTimeout`;
|
|
3807
|
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
3808
|
+
/*!40101 SET character_set_client = utf8mb4 */;
|
|
3809
|
+
CREATE TABLE `transferTimeout` (
|
|
3810
|
+
`transferTimeoutId` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
3811
|
+
`transferId` varchar(36) NOT NULL,
|
|
3812
|
+
`expirationDate` datetime NOT NULL,
|
|
3813
|
+
`createdDate` datetime NOT NULL DEFAULT current_timestamp(),
|
|
3814
|
+
PRIMARY KEY (`transferTimeoutId`),
|
|
3815
|
+
UNIQUE KEY `transfertimeout_transferid_unique` (`transferId`),
|
|
3816
|
+
CONSTRAINT `transfertimeout_transferid_foreign` FOREIGN KEY (`transferId`) REFERENCES `transfer` (`transferId`)
|
|
3817
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
|
3818
|
+
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
3819
|
+
|
|
3820
|
+
--
|
|
3821
|
+
-- Dumping data for table `transferTimeout`
|
|
3822
|
+
--
|
|
3823
|
+
|
|
3824
|
+
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;
|
|
3825
|
+
LOCK TABLES `transferTimeout` WRITE;
|
|
3826
|
+
/*!40000 ALTER TABLE `transferTimeout` DISABLE KEYS */;
|
|
3827
|
+
/*!40000 ALTER TABLE `transferTimeout` ENABLE KEYS */;
|
|
3828
|
+
UNLOCK TABLES;
|
|
3829
|
+
COMMIT;
|
|
3830
|
+
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
|
|
3831
|
+
|
|
3832
|
+
--
|
|
3833
|
+
-- Final view structure for view `quotePartyView`
|
|
3834
|
+
--
|
|
3835
|
+
|
|
3836
|
+
/*!50001 DROP VIEW IF EXISTS `quotePartyView`*/;
|
|
3837
|
+
/*!50001 SET @saved_cs_client = @@character_set_client */;
|
|
3838
|
+
/*!50001 SET @saved_cs_results = @@character_set_results */;
|
|
3839
|
+
/*!50001 SET @saved_col_connection = @@collation_connection */;
|
|
3840
|
+
/*!50001 SET character_set_client = utf8mb4 */;
|
|
3841
|
+
/*!50001 SET character_set_results = utf8mb4 */;
|
|
3842
|
+
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
|
|
3843
|
+
/*!50001 CREATE ALGORITHM=UNDEFINED */
|
|
3844
|
+
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
|
|
3845
|
+
/*!50001 VIEW `quotePartyView` AS select `qp`.`quoteId` AS `quoteId`,`qp`.`quotePartyId` AS `quotePartyId`,`pt`.`name` AS `partyType`,`pit`.`name` AS `identifierType`,`qp`.`partyIdentifierValue` AS `partyIdentifierValue`,`qp`.`partySubIdOrTypeId` AS `partySubIdOrType`,`qp`.`fspId` AS `fspId`,`qp`.`merchantClassificationCode` AS `merchantClassificationCode`,`qp`.`partyName` AS `partyName`,`p`.`firstName` AS `firstName`,`p`.`lastName` AS `lastName`,`p`.`middleName` AS `middleName`,`p`.`dateOfBirth` AS `dateOfBirth`,`gc`.`longitude` AS `longitude`,`gc`.`latitude` AS `latitude` from ((((`quoteParty` `qp` join `partyType` `pt` on(`pt`.`partyTypeId` = `qp`.`partyTypeId`)) join `partyIdentifierType` `pit` on(`pit`.`partyIdentifierTypeId` = `qp`.`partyIdentifierTypeId`)) left join `party` `p` on(`p`.`quotePartyId` = `qp`.`quotePartyId`)) left join `geoCode` `gc` on(`gc`.`quotePartyId` = `qp`.`quotePartyId`)) */;
|
|
3846
|
+
/*!50001 SET character_set_client = @saved_cs_client */;
|
|
3847
|
+
/*!50001 SET character_set_results = @saved_cs_results */;
|
|
3848
|
+
/*!50001 SET collation_connection = @saved_col_connection */;
|
|
3849
|
+
|
|
3850
|
+
--
|
|
3851
|
+
-- Final view structure for view `quoteResponseView`
|
|
3852
|
+
--
|
|
3853
|
+
|
|
3854
|
+
/*!50001 DROP VIEW IF EXISTS `quoteResponseView`*/;
|
|
3855
|
+
/*!50001 SET @saved_cs_client = @@character_set_client */;
|
|
3856
|
+
/*!50001 SET @saved_cs_results = @@character_set_results */;
|
|
3857
|
+
/*!50001 SET @saved_col_connection = @@collation_connection */;
|
|
3858
|
+
/*!50001 SET character_set_client = utf8mb4 */;
|
|
3859
|
+
/*!50001 SET character_set_results = utf8mb4 */;
|
|
3860
|
+
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
|
|
3861
|
+
/*!50001 CREATE ALGORITHM=UNDEFINED */
|
|
3862
|
+
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
|
|
3863
|
+
/*!50001 VIEW `quoteResponseView` AS select `qr`.`quoteResponseId` AS `quoteResponseId`,`qr`.`quoteId` AS `quoteId`,`qr`.`transferAmountCurrencyId` AS `transferAmountCurrencyId`,`qr`.`transferAmount` AS `transferAmount`,`qr`.`payeeReceiveAmountCurrencyId` AS `payeeReceiveAmountCurrencyId`,`qr`.`payeeReceiveAmount` AS `payeeReceiveAmount`,`qr`.`payeeFspFeeCurrencyId` AS `payeeFspFeeCurrencyId`,`qr`.`payeeFspFeeAmount` AS `payeeFspFeeAmount`,`qr`.`payeeFspCommissionCurrencyId` AS `payeeFspCommissionCurrencyId`,`qr`.`payeeFspCommissionAmount` AS `payeeFspCommissionAmount`,`qr`.`ilpCondition` AS `ilpCondition`,`qr`.`responseExpirationDate` AS `responseExpirationDate`,`qr`.`isValid` AS `isValid`,`qr`.`createdDate` AS `createdDate`,`qrilp`.`value` AS `ilpPacket`,`gc`.`longitude` AS `longitude`,`gc`.`latitude` AS `latitude` from ((((`quoteResponse` `qr` join `quoteResponseIlpPacket` `qrilp` on(`qrilp`.`quoteResponseId` = `qr`.`quoteResponseId`)) join `quoteParty` `qp` on(`qp`.`quoteId` = `qr`.`quoteId`)) join `partyType` `pt` on(`pt`.`partyTypeId` = `qp`.`partyTypeId`)) left join `geoCode` `gc` on(`gc`.`quotePartyId` = `qp`.`quotePartyId`)) where `pt`.`name` = 'PAYEE' */;
|
|
3864
|
+
/*!50001 SET character_set_client = @saved_cs_client */;
|
|
3865
|
+
/*!50001 SET character_set_results = @saved_cs_results */;
|
|
3866
|
+
/*!50001 SET collation_connection = @saved_col_connection */;
|
|
3867
|
+
|
|
3868
|
+
--
|
|
3869
|
+
-- Final view structure for view `quoteView`
|
|
3870
|
+
--
|
|
3871
|
+
|
|
3872
|
+
/*!50001 DROP VIEW IF EXISTS `quoteView`*/;
|
|
3873
|
+
/*!50001 SET @saved_cs_client = @@character_set_client */;
|
|
3874
|
+
/*!50001 SET @saved_cs_results = @@character_set_results */;
|
|
3875
|
+
/*!50001 SET @saved_col_connection = @@collation_connection */;
|
|
3876
|
+
/*!50001 SET character_set_client = utf8mb4 */;
|
|
3877
|
+
/*!50001 SET character_set_results = utf8mb4 */;
|
|
3878
|
+
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
|
|
3879
|
+
/*!50001 CREATE ALGORITHM=UNDEFINED */
|
|
3880
|
+
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
|
|
3881
|
+
/*!50001 VIEW `quoteView` AS select `q`.`quoteId` AS `quoteId`,`q`.`transactionReferenceId` AS `transactionReferenceId`,`q`.`transactionRequestId` AS `transactionRequestId`,`q`.`note` AS `note`,`q`.`expirationDate` AS `expirationDate`,`ti`.`name` AS `transactionInitiator`,`tit`.`name` AS `transactionInitiatorType`,`ts`.`name` AS `transactionScenario`,`q`.`balanceOfPaymentsId` AS `balanceOfPaymentsId`,`tss`.`name` AS `transactionSubScenario`,`amt`.`name` AS `amountType`,`q`.`amount` AS `amount`,`q`.`currencyId` AS `currency` from (((((`quote` `q` join `transactionInitiator` `ti` on(`ti`.`transactionInitiatorId` = `q`.`transactionInitiatorId`)) join `transactionInitiatorType` `tit` on(`tit`.`transactionInitiatorTypeId` = `q`.`transactionInitiatorTypeId`)) join `transactionScenario` `ts` on(`ts`.`transactionScenarioId` = `q`.`transactionScenarioId`)) join `amountType` `amt` on(`amt`.`amountTypeId` = `q`.`amountTypeId`)) left join `transactionSubScenario` `tss` on(`tss`.`transactionSubScenarioId` = `q`.`transactionSubScenarioId`)) */;
|
|
3882
|
+
/*!50001 SET character_set_client = @saved_cs_client */;
|
|
3883
|
+
/*!50001 SET character_set_results = @saved_cs_results */;
|
|
3884
|
+
/*!50001 SET collation_connection = @saved_col_connection */;
|
|
3885
|
+
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
|
3886
|
+
|
|
3887
|
+
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
3888
|
+
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|
3889
|
+
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|
3890
|
+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
3891
|
+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
3892
|
+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
3893
|
+
/*M!100616 SET NOTE_VERBOSITY=@OLD_NOTE_VERBOSITY */;
|
|
3894
|
+
|
|
3895
|
+
-- Dump completed on 2026-06-10 10:35:55
|