Add max_daily_limit_gtq field to lamassu_config: Updated database schema and models to include max_daily_limit_gtq for configurable client limits. Enhanced API and frontend to support this new field, ensuring proper handling and validation in the user interface.
This commit is contained in:
parent
ae50db10c7
commit
7af0e47d48
6 changed files with 75 additions and 3 deletions
|
|
@ -122,4 +122,16 @@ async def m002_add_transaction_time_to_dca_payments(db):
|
|||
ALTER TABLE satoshimachine.dca_payments
|
||||
ADD COLUMN transaction_time TIMESTAMP
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
async def m003_add_max_daily_limit_config(db):
|
||||
"""
|
||||
Add max_daily_limit_gtq field to lamassu_config table for admin-configurable client limits
|
||||
"""
|
||||
await db.execute(
|
||||
"""
|
||||
ALTER TABLE satoshimachine.lamassu_config
|
||||
ADD COLUMN max_daily_limit_gtq INTEGER NOT NULL DEFAULT 2000
|
||||
"""
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue