fix: Refund/Capture delete, add indexes

This commit is contained in:
fPolic
2024-01-12 12:03:17 +01:00
parent 1b882a90ed
commit f2a4f454fe
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ export default class Capture {
amount: number
@ManyToOne(() => Payment, {
onDelete: "cascade",
index: "IDX_capture_payment_id",
fieldName: "payment_id",
})
payment: Payment

View File

@@ -27,7 +27,7 @@ export default class Refund {
amount: number
@ManyToOne(() => Payment, {
onDelete: "cascade",
index: "IDX_refund_payment_id",
fieldName: "payment_id",
})
payment: Payment