@cfxlabsinc/b2b-services
Preparing search index...
@cfxlabsinc/b2b-db-schema
withdrawalQuoteTable
Variable withdrawalQuoteTable
Const
withdrawalQuoteTable
:
Omit
<
PgTableWithColumns
<
{
columns
:
{
createdAt
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgTimestamp"
;
data
:
Date
;
dataType
:
"date"
;
driverParam
:
string
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
true
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"createdAt"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
customerId
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgInteger"
;
data
:
number
;
dataType
:
"number"
;
driverParam
:
string
|
number
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"customerId"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
deviceIpAddress
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgText"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
[
string
,
...
string
[]
]
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"deviceIpAddress"
;
notNull
:
false
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
deviceLocation
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgJsonb"
;
data
:
{
lat
:
number
;
long
:
number
;
source
:
"ip"
}
;
dataType
:
"json"
;
driverParam
:
unknown
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"deviceLocation"
;
notNull
:
false
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{
$type
:
{
lat
:
number
;
long
:
number
;
source
:
"ip"
}
}
,
>
;
entityExternalId
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgText"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
[
string
,
...
string
[]
]
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"entityExternalId"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
expiresAt
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgTimestamp"
;
data
:
Date
;
dataType
:
"date"
;
driverParam
:
string
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"expiresAt"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
externalId
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgText"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
[
string
,
...
string
[]
]
;
generated
:
undefined
;
hasDefault
:
true
;
hasRuntimeDefault
:
true
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"externalId"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
fees
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgJsonb"
;
data
:
(
{
amount
:
string
;
receiver
:
"CUSTOMER"
|
"PROVIDER"
|
"CFX"
;
type
:
"FIXED"
|
"VARIABLE"
;
}
&
{
currency
:
"MOVEUSD"
|
"USDC"
}
)
[]
;
dataType
:
"json"
;
driverParam
:
unknown
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
true
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"fees"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{
$type
:
(
{
amount
:
string
;
receiver
:
"CUSTOMER"
|
"PROVIDER"
|
"CFX"
;
type
:
"FIXED"
|
"VARIABLE"
;
}
&
{
currency
:
"MOVEUSD"
|
"USDC"
}
)
[]
;
}
,
>
;
id
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgInteger"
;
data
:
number
;
dataType
:
"number"
;
driverParam
:
string
|
number
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
true
;
hasRuntimeDefault
:
false
;
identity
:
"byDefault"
;
isAutoincrement
:
false
;
isPrimaryKey
:
true
;
name
:
"id"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
metadata
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgJsonb"
;
data
:
{
brand
?:
string
;
marketing
?:
{
fbp
?:
string
;
gclid
?:
string
;
sub1
?:
string
;
sub2
?:
string
;
sub3
?:
string
;
userAgent
?:
string
;
utmCampaign
?:
string
;
utmContent
?:
string
;
utmMedium
?:
string
;
utmSource
?:
string
;
}
;
}
;
dataType
:
"json"
;
driverParam
:
unknown
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
true
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"metadata"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{
$type
:
{
brand
?:
string
;
marketing
?:
{
fbp
?:
string
;
gclid
?:
string
;
sub1
?:
string
;
sub2
?:
string
;
sub3
?:
string
;
userAgent
?:
string
;
utmCampaign
?:
string
;
utmContent
?:
string
;
utmMedium
?:
string
;
utmSource
?:
string
;
}
;
}
;
}
,
>
;
methodData
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgJsonb"
;
data
:
|
{
achBatchId
?:
string
;
bankId
?:
string
;
sourceRedemptionWalletId
?:
string
;
speed
?:
"same-day"
|
"next-day"
;
type
:
"US_ACH"
;
}
|
{
achId
:
string
;
bankId
?:
string
;
sourceRedemptionWalletId
?:
string
;
type
:
"ACH_PULL"
;
}
|
{
bankId
?:
string
;
beneficiaryReference
?:
string
;
purpose
:
WireWithdrawalPurpose
;
senderMessage
?:
string
;
sourceRedemptionWalletId
:
string
;
type
:
"US_WIRE"
|
"SWIFT_WIRE"
;
wireBatchId
?:
string
;
}
|
{
country
:
string
;
type
:
"AF_WITHDRAWAL"
;
withdrawalType
:
"bank"
|
"momo"
;
}
|
{
sourceRedemptionWalletId
:
string
;
type
:
"BLOCKCHAIN"
}
|
{
bankId
?:
string
;
sourceRedemptionWalletId
?:
string
;
type
:
"US_INSTANT"
;
}
|
{
bankId
?:
string
;
drawdownId
:
string
;
sourceAccountId
:
string
;
type
:
"US_WIRE_DRAWDOWN"
;
}
;
dataType
:
"json"
;
driverParam
:
unknown
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"methodData"
;
notNull
:
false
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{
$type
:
|
{
achBatchId
?:
string
;
bankId
?:
string
;
sourceRedemptionWalletId
?:
string
;
speed
?:
"same-day"
|
"next-day"
;
type
:
"US_ACH"
;
}
|
{
achId
:
string
;
bankId
?:
string
;
sourceRedemptionWalletId
?:
string
;
type
:
"ACH_PULL"
;
}
|
{
bankId
?:
string
;
beneficiaryReference
?:
string
;
purpose
:
WireWithdrawalPurpose
;
senderMessage
?:
string
;
sourceRedemptionWalletId
:
string
;
type
:
"US_WIRE"
|
"SWIFT_WIRE"
;
wireBatchId
?:
string
;
}
|
{
country
:
string
;
type
:
"AF_WITHDRAWAL"
;
withdrawalType
:
"bank"
|
"momo"
;
}
|
{
sourceRedemptionWalletId
:
string
;
type
:
"BLOCKCHAIN"
}
|
{
bankId
?:
string
;
sourceRedemptionWalletId
?:
string
;
type
:
"US_INSTANT"
;
}
|
{
bankId
?:
string
;
drawdownId
:
string
;
sourceAccountId
:
string
;
type
:
"US_WIRE_DRAWDOWN"
;
}
;
}
,
>
;
methodId
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgText"
;
data
:
|
"US_WIRE"
|
"SWIFT_WIRE"
|
"US_ACH"
|
"US_INSTANT"
|
"MX_SPEI"
|
"US_WIRE_DRAWDOWN"
|
"AF_WITHDRAWAL"
|
"ACH_PULL"
|
"BLOCKCHAIN"
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
[
string
,
...
string
[]
]
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"methodId"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{
$type
:
|
"US_WIRE"
|
"SWIFT_WIRE"
|
"US_ACH"
|
"US_INSTANT"
|
"MX_SPEI"
|
"US_WIRE_DRAWDOWN"
|
"AF_WITHDRAWAL"
|
"ACH_PULL"
|
"BLOCKCHAIN"
;
}
,
>
;
paymentInstrumentId
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgText"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
[
string
,
...
string
[]
]
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"paymentInstrumentId"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
providerQuoteId
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgText"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
[
string
,
...
string
[]
]
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"providerQuoteId"
;
notNull
:
false
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
sourceAmount
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgNumeric"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"sourceAmount"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
sourceAmountAfterFees
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgNumeric"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"sourceAmountAfterFees"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
sourceCurrency
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgText"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
[
string
,
...
string
[]
]
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"sourceCurrency"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
status
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgText"
;
data
:
"ACCEPTED"
|
"ACTIVE"
|
"EXPIRED"
|
"REJECTED"
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
[
string
,
...
string
[]
]
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"status"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{
$type
:
"ACCEPTED"
|
"ACTIVE"
|
"EXPIRED"
|
"REJECTED"
}
,
>
;
targetAmount
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgNumeric"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"targetAmount"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
targetAmountAfterFees
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgNumeric"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"targetAmountAfterFees"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
targetCurrency
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgText"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
[
string
,
...
string
[]
]
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"targetCurrency"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
unsignedWithdrawalTransaction
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgText"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
[
string
,
...
string
[]
]
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"unsignedWithdrawalTransaction"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
updatedAt
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgTimestamp"
;
data
:
Date
;
dataType
:
"date"
;
driverParam
:
string
;
enumValues
:
undefined
;
generated
:
undefined
;
hasDefault
:
true
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"updatedAt"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
walletAddress
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgText"
;
data
:
string
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
[
string
,
...
string
[]
]
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"walletAddress"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{}
,
>
;
walletBlockchain
:
PgColumn
<
{
baseColumn
:
never
;
columnType
:
"PgText"
;
data
:
"SOLANA"
;
dataType
:
"string"
;
driverParam
:
string
;
enumValues
:
[
string
,
...
string
[]
]
;
generated
:
undefined
;
hasDefault
:
false
;
hasRuntimeDefault
:
false
;
identity
:
undefined
;
isAutoincrement
:
false
;
isPrimaryKey
:
false
;
name
:
"walletBlockchain"
;
notNull
:
true
;
tableName
:
"withdrawal_quote"
;
}
,
{}
,
{
$type
:
"SOLANA"
}
,
>
;
}
;
dialect
:
"pg"
;
name
:
"withdrawal_quote"
;
schema
:
"b2b"
;
}
,
>
,
"enableRLS"
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@cfxlabsinc/b2b-services
Loading...