Im sorry to ask this but im being confuse what to ...
# help
u
Im sorry to ask this but im being confuse what to use as datatype when we talk about wallets?? Is it decimal? Money? or what Thanksss...
j
seems like if u dont have the concept of fractional cents, then using a
bigint
for cents sounds nice, otherwise `numeric`/`decimal`
j
There's a nextjs supabase stripe example for some kind of subscription store thing https://github.com/vercel/nextjs-subscription-payments It stores the unit_amount in an int8 and then a currency in a string so $10 or $10.00 is 1000 and ¥500 is 500 https://stripe.com/docs/currencies#zero-decimal
k