mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 09:58:12 +00:00
Merge branch 'alpha' of https://github.com/Tria-plc/edr-platform into alpha
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
-- AlterTable
|
||||||
|
-- Widen PaymentIntent.amountMinor from integer to double precision so fractional
|
||||||
|
-- charge amounts (e.g. 1700.49 after ETB->DJF FX conversion) mirror the
|
||||||
|
-- edr_payment.payment_intent.amount_minor source of truth instead of truncating.
|
||||||
|
ALTER TABLE "passenger"."PaymentIntent" ALTER COLUMN "amountMinor" SET DATA TYPE DOUBLE PRECISION;
|
||||||
@@ -621,7 +621,7 @@ model PaymentMethod {
|
|||||||
model PaymentIntent {
|
model PaymentIntent {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
bookingId String @unique
|
bookingId String @unique
|
||||||
amountMinor Int
|
amountMinor Float
|
||||||
currency String @default("ETB")
|
currency String @default("ETB")
|
||||||
method PaymentMethodType
|
method PaymentMethodType
|
||||||
provider String?
|
provider String?
|
||||||
|
|||||||
Reference in New Issue
Block a user