@javalabs/prisma-client 1.0.23 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
-- Add Athena match tracking fields to manual_payments table
|
|
2
|
+
ALTER TABLE manual_payments
|
|
3
|
+
ADD COLUMN IF NOT EXISTS athena_matched BOOLEAN DEFAULT false,
|
|
4
|
+
ADD COLUMN IF NOT EXISTS athena_match_id VARCHAR(255),
|
|
5
|
+
ADD COLUMN IF NOT EXISTS athena_matched_at TIMESTAMPTZ(6);
|
|
6
|
+
|
|
7
|
+
COMMENT ON COLUMN manual_payments.athena_matched IS 'Indica si el pago fue matched con una transacción de Athena';
|
|
8
|
+
COMMENT ON COLUMN manual_payments.athena_match_id IS 'ID de la transacción de Athena con la que se hizo match';
|
|
9
|
+
COMMENT ON COLUMN manual_payments.athena_matched_at IS 'Fecha y hora en que se hizo el match con Athena';
|
|
10
|
+
|
|
11
|
+
-- Crear índice para optimizar búsquedas por athena_match_id
|
|
12
|
+
CREATE INDEX IF NOT EXISTS idx_manual_payments_athena_match_id ON manual_payments(athena_match_id);
|
|
13
|
+
|
package/prisma/schema.prisma
CHANGED
|
@@ -253,6 +253,9 @@ model manual_payments {
|
|
|
253
253
|
country_code String? @db.VarChar(10)
|
|
254
254
|
bank_account_id Int?
|
|
255
255
|
transaction_id Int?
|
|
256
|
+
athena_matched Boolean @default(false)
|
|
257
|
+
athena_match_id String? @db.VarChar(255)
|
|
258
|
+
athena_matched_at DateTime? @db.Timestamptz(6)
|
|
256
259
|
transaction transactions? @relation(fields: [transaction_id], references: [id])
|
|
257
260
|
manual_transfer_bank_acounts manual_transfer_bank_acounts? @relation(fields: [bank_account_id], references: [id])
|
|
258
261
|
users_manual_payments_processed_byTousers users? @relation("manual_payments_processed_byTousers", fields: [processed_by], references: [user_id])
|
|
@@ -398,6 +401,7 @@ model transactions {
|
|
|
398
401
|
fixed_fee Decimal? @default(0) @db.Decimal(10, 2)
|
|
399
402
|
total_commission_fee Decimal? @default(0) @db.Decimal(10, 2)
|
|
400
403
|
total_operation Decimal? @default(0) @db.Decimal(10, 2)
|
|
404
|
+
amount_received Decimal? @db.Decimal(10, 2)
|
|
401
405
|
toku toku?
|
|
402
406
|
account_type enum_account_type?
|
|
403
407
|
daily_logs daily_logs[]
|