@cfxlabsinc/b2b-services
    Preparing search index...

    Module @cfxlabsinc/b2b-db-schema

    db

    Houses database migrations, types and configuration for running a local PostgreSQL instance.

    This will start a local PostgreSQL Docker container, run all migrations against it, and seed it:

    pnpm exec nx run db:start
    

    This will wipe the local database, re-run all migrations and seed the database:

    pnpm exec nx run db:reset
    

    This will explicitly just seed the local database. This will rarely need to be run. You'll more likely want to run reset during development.

    pnpm exec nx run db:seed
    
    pnpm exec nx run db:stop
    

    This will generate a blank migration file within the migrations directory.

    pnpm exec nx run db:migrate-new <name>
    
    pnpm exec nx run db:migrate-up
    
    pnpm exec nx run db:migrate-down
    
    pnpm exec nx run db:migrate-status
    
    pnpm exec nx run db:migrate-dump
    

    To add seed data to the database, you can create .sql scripts within the seed directory.

    Running the start or reset targets on this project will automatically seed the database using these seed scripts.

    This data will only be inserted into the local instance.

    Classes

    DbHelper

    Type Aliases

    B2bDatabase
    B2bPgTransaction
    DbOrderByCriterion
    DbTimestampCriteria
    Fees
    InsertAchFile
    InsertCustomerApiKey
    InsertCustomerSlackBotChannel
    InsertCustomerSlackBotInstallation
    InsertEntityProductBlock
    InsertQuilttConnection
    InsertRewardLedger
    InsertSlackBotInstallation
    InsertSolanaAccountTransaction
    InsertSwapQuote
    InsertVirtualAccount
    InsertWithdrawalQuote
    ProductName
    QuilttAccountData
    SelectAchBatch
    SelectAchFile
    SelectBankInternalTransfer
    SelectBankTransaction
    SelectCustomer
    SelectCustomerApiKey
    SelectCustomerParent
    SelectCustomerRedemption
    SelectCustomerRedemptionStatusUpdate
    SelectCustomerRedemptionWallet
    SelectCustomerSlackBotChannel
    SelectCustomerSlackBotInstallation
    SelectDashboardCustomerUser
    SelectDashboardUser
    SelectDashboardUserActivity
    SelectDeposit
    SelectDepositBankMemo
    SelectDepositRequest
    SelectDepositStatusUpdate
    SelectDirectDepositRequest
    SelectEntityProductBlock
    SelectFedAchDirectoryRecord
    SelectFedParticipantDirectoryRecord
    SelectFeeTransfer
    SelectGirasolCard
    SelectGirasolCardAccount
    SelectGirasolCardClearing
    SelectGirasolCardTransaction
    SelectGirasolClearingRecord
    SelectIdentity
    SelectMetcapToken
    SelectMetcapWireTransaction
    SelectOrganization
    SelectPaymentInstrument
    SelectPaymentInstrumentBlacklist
    SelectProductConfig
    SelectProductFeeConfig
    SelectProductLimitConfig
    SelectQuilttConnection
    SelectRedemptionTransfer
    SelectRedemptionWalletWithdrawal
    SelectRewardClaim
    SelectRewardEventConfig
    SelectRewardLedger
    SelectSlackBotInstallation
    SelectSolanaAccountTransaction
    SelectSolanaNonce
    SelectSolanaTransaction
    SelectSwap
    SelectSwapQuote
    SelectTransactionMetadata
    SelectTransactionMetadataFile
    SelectUsCashDepositRetailer
    SelectUtilaWallet
    SelectVirtualAccount
    SelectWireBatch
    SelectWireFile
    SelectWithdrawal
    SelectWithdrawalQuote
    SelectWithdrawalStatusUpdate
    WireWithdrawalPurpose

    Variables

    achBatchTable
    achFileTable
    b2b
    bankInternalTransferTable
    bankTransactionTable
    customerApiKeyTable
    customerParentTable
    customerRedemptionStatusUpdateTable
    customerRedemptionTable
    customerRedemptionWalletTable
    customerSlackBotChannel
    customerSlackBotInstallationTable
    customerTable
    dashboardCustomerUserTable
    dashboardUserActivityTable
    dashboardUserTable
    depositBankMemoTable
    depositRequestTable
    depositStatusUpdateTable
    depositTable
    directDepositRequestTable
    entityProductBlockTable
    fedAchDirectoryTable
    fedParticipantDirectoryTable
    feeTransferTable
    girasolCardAccountTable
    girasolCardTable
    girasolCardTransactionTable
    girasolClearingBatchTable
    girasolClearingRecordTable
    identityTable
    metcapTokenTable
    metcapWireTransactionTable
    organizationTable
    paymentInstrumentBlacklistTable
    paymentInstrumentTable
    PRODUCT_NAMES
    productConfigTable
    productFeeConfigTable
    productLimitConfigTable
    quilttConnectionTable
    redemptionTransferTable
    redemptionWalletWithdrawalTable
    rewardClaimTable
    rewardEventConfigTable
    rewardLedgerTable
    slackBotInstallationTable
    solanaAccountTransactionTable
    solanaNoncePoolTable
    solanaTransactionTable
    swapQuoteTable
    swapTable
    transactionMetadataFileTable
    transactionMetadataTable
    usCashDepositRetailerTable
    utilaWalletTable
    virtualAccountTable
    wireBatchTable
    wireFileTable
    withdrawalQuoteTable
    withdrawalStatusUpdateTable
    withdrawalTable

    Functions

    createDrizzle
    dbOrderBy
    dbTimestampQuery
    isUniqueConstraintViolatedError