feat(FIX-158): completed feature

This commit is contained in:
chattie
2026-08-22 17:26:02 +02:00
parent 49a5755eb8
commit 699dfc6fca
17 changed files with 4053 additions and 1491 deletions

View File

@@ -42,13 +42,9 @@ export const up = (pgm) => {
updated_at: { type: 'timestamptz', notNull: true, default: pgm.func('now()') },
},
{
// Inline CHECK constraints.
// Inline CHECK constraint.
constraints: {
check: {
nonzero_amount: 'amount_cents != 0',
eur_only: "currency = 'EUR'",
valid_status: "status IN ('payment', 'refund', 'partial_refund')",
},
check: 'amount_cents != 0',
},
},
);