Add hold_available_amount column

This commit is contained in:
Moriz Wahl 2022-03-09 15:07:55 +01:00
parent f78f2d5977
commit 14a0a4344d
2 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,16 @@ export class TransactionLink extends BaseEntity {
})
amount: Decimal
@Column({
type: 'decimal',
name: 'hold_available_amount',
precision: 40,
scale: 20,
nullable: false,
transformer: DecimalTransformer,
})
holdAvailableAmount: Decimal
@Column({ length: 255, nullable: false, collation: 'utf8mb4_unicode_ci' })
memo: string

View File

@ -9,6 +9,7 @@ export async function upgrade(queryFn: (query: string, values?: any[]) => Promis
\`id\` int UNSIGNED NOT NULL AUTO_INCREMENT,
\`userId\` int UNSIGNED NOT NULL,
\`amount\` DECIMAL(40,20) NOT NULL,
\`hold_available_amount\` DECIMAL(40,20) NOT NULL,
\`memo\` varchar(255) NOT NULL,
\`code\` varchar(96) NOT NULL,
\`createdAt\` datetime NOT NULL,