Add transaction_time field to DCA payments: Updated the database schema to include a new transaction_time column in the dca_payments table, modified the CreateDcaPaymentData model to accept transaction_time, and adjusted the create_dca_payment function to store the original ATM transaction time. Updated transaction processing to capture this new field.

This commit is contained in:
padreug 2025-06-22 16:50:27 +02:00
parent 18323dc0c8
commit 3a2f10f949
4 changed files with 20 additions and 4 deletions

View file

@ -110,4 +110,16 @@ async def m001_initial_dca_schema(db):
distributions_total_sats INTEGER NOT NULL DEFAULT 0
);
"""
)
async def m002_add_transaction_time_to_dca_payments(db):
"""
Add transaction_time field to dca_payments table to store original ATM transaction time
"""
await db.execute(
"""
ALTER TABLE satmachineadmin.dca_payments
ADD COLUMN transaction_time TIMESTAMP
"""
)