From d94badfa5358f3841b468df8a2a6377130aff702 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 12 Dec 2025 18:46:37 -0800 Subject: [PATCH] =?UTF-8?q?fix(wallet-service):=20=E4=BF=AE=E5=A4=8D=20acc?= =?UTF-8?q?ount=5Fsequence=20=E7=B1=BB=E5=9E=8B=E4=BB=8E=20BIGINT=20?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=20VARCHAR(20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 与其他服务保持一致,accountSequence 格式为 D + YYMMDD + 5位序号 - wallet_accounts.account_sequence - wallet_ledger_entries.account_sequence - deposit_orders.account_sequence - withdrawal_orders.account_sequence 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../prisma/migrations/20241204000000_init/migration.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/services/wallet-service/prisma/migrations/20241204000000_init/migration.sql b/backend/services/wallet-service/prisma/migrations/20241204000000_init/migration.sql index 5183d318..9e4a2691 100644 --- a/backend/services/wallet-service/prisma/migrations/20241204000000_init/migration.sql +++ b/backend/services/wallet-service/prisma/migrations/20241204000000_init/migration.sql @@ -1,7 +1,7 @@ -- CreateTable CREATE TABLE "wallet_accounts" ( "wallet_id" BIGSERIAL NOT NULL, - "account_sequence" BIGINT NOT NULL, + "account_sequence" VARCHAR(20) NOT NULL, "user_id" BIGINT NOT NULL, "usdt_available" DECIMAL(20,8) NOT NULL DEFAULT 0, "usdt_frozen" DECIMAL(20,8) NOT NULL DEFAULT 0, @@ -33,7 +33,7 @@ CREATE TABLE "wallet_accounts" ( -- CreateTable CREATE TABLE "wallet_ledger_entries" ( "entry_id" BIGSERIAL NOT NULL, - "account_sequence" BIGINT NOT NULL, + "account_sequence" VARCHAR(20) NOT NULL, "user_id" BIGINT NOT NULL, "entry_type" VARCHAR(50) NOT NULL, "amount" DECIMAL(20,8) NOT NULL, @@ -51,7 +51,7 @@ CREATE TABLE "wallet_ledger_entries" ( -- CreateTable CREATE TABLE "deposit_orders" ( "order_id" BIGSERIAL NOT NULL, - "account_sequence" BIGINT NOT NULL, + "account_sequence" VARCHAR(20) NOT NULL, "user_id" BIGINT NOT NULL, "chain_type" VARCHAR(20) NOT NULL, "amount" DECIMAL(20,8) NOT NULL, @@ -82,7 +82,7 @@ CREATE TABLE "settlement_orders" ( CREATE TABLE "withdrawal_orders" ( "order_id" BIGSERIAL NOT NULL, "order_no" VARCHAR(50) NOT NULL, - "account_sequence" BIGINT NOT NULL, + "account_sequence" VARCHAR(20) NOT NULL, "user_id" BIGINT NOT NULL, "amount" DECIMAL(20,8) NOT NULL, "fee" DECIMAL(20,8) NOT NULL,