fix: some api bug
This commit is contained in:
@@ -10,8 +10,7 @@ import (
|
||||
var (
|
||||
// WalletsColumns holds the columns for the "wallets" table.
|
||||
WalletsColumns = []*schema.Column{
|
||||
{Name: "id", Type: field.TypeInt, Increment: true},
|
||||
{Name: "user_id", Type: field.TypeInt64, Unique: true},
|
||||
{Name: "user_id", Type: field.TypeInt64, Increment: true},
|
||||
{Name: "balance", Type: field.TypeOther, SchemaType: map[string]string{"postgres": "decimal(12,2)"}},
|
||||
{Name: "frozen_balance", Type: field.TypeOther, SchemaType: map[string]string{"postgres": "decimal(12,2)"}},
|
||||
{Name: "version", Type: field.TypeInt, Default: 1},
|
||||
@@ -33,7 +32,6 @@ var (
|
||||
{Name: "description", Type: field.TypeJSON},
|
||||
{Name: "order_id", Type: field.TypeInt64, Unique: true},
|
||||
{Name: "created_at", Type: field.TypeTime},
|
||||
{Name: "search_text", Type: field.TypeString},
|
||||
}
|
||||
// WalletTransactionsTable holds the schema information for the "wallet_transactions" table.
|
||||
WalletTransactionsTable = &schema.Table{
|
||||
|
||||
Reference in New Issue
Block a user