Add username field to DCA clients: update database schema, CRUD operations, and UI components to support username functionality for improved user experience.
This commit is contained in:
parent
1d9cda3931
commit
b615ed0504
5 changed files with 35 additions and 11 deletions
5
crud.py
5
crud.py
|
|
@ -59,13 +59,14 @@ async def create_dca_client(data: CreateDcaClientData) -> DcaClient:
|
|||
await db.execute(
|
||||
"""
|
||||
INSERT INTO myextension.dca_clients
|
||||
(id, user_id, wallet_id, dca_mode, fixed_mode_daily_limit, status, created_at, updated_at)
|
||||
VALUES (:id, :user_id, :wallet_id, :dca_mode, :fixed_mode_daily_limit, :status, :created_at, :updated_at)
|
||||
(id, user_id, wallet_id, username, dca_mode, fixed_mode_daily_limit, status, created_at, updated_at)
|
||||
VALUES (:id, :user_id, :wallet_id, :username, :dca_mode, :fixed_mode_daily_limit, :status, :created_at, :updated_at)
|
||||
""",
|
||||
{
|
||||
"id": client_id,
|
||||
"user_id": data.user_id,
|
||||
"wallet_id": data.wallet_id,
|
||||
"username": data.username,
|
||||
"dca_mode": data.dca_mode,
|
||||
"fixed_mode_daily_limit": data.fixed_mode_daily_limit,
|
||||
"status": "active",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue