You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because assets aren't associated with a Wallet Address like Open Payments resources are, it becomes necessary to add a tenantId to them to determine which tenant that asset belongs to.
Add required tenantId column to assets table
Acquire tenantId from request header and pass into asset service logic during graphql requests
@njlie re-posting my comment from the planning doc:
If we want to have assets be tenanted, we need to change how we create asset liquidity and settlement accounts.
Currently, when we create an account in TB, we use the auto-incrementing ledger value (smallint in PSQL) as the id for the asset settlement account. If we were to create an asset for a second tenant (in a separate schema/db), the settlement account creation would fail because of the id collision.
One way to solve this would be to just start storing liquidityAccountId and settlementAccountId on the assets table, or something in a different lookup table
Because assets aren't associated with a Wallet Address like Open Payments resources are, it becomes necessary to add a tenantId to them to determine which tenant that asset belongs to.
tenantId
column toassets
tabletenantId
from request header and pass into asset service logic during graphql requeststenantId
to database queries on assetsPrerequisites:
backend
tenants table #3103The text was updated successfully, but these errors were encountered: