fix: play estimation to numeric #122

Merged
irfan merged 1 commits from development into production 2025-01-03 11:09:14 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ export class AddEstimationToItem1723801180604 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "items" ADD "play_estimation" integer`,
`ALTER TABLE "items" ADD "play_estimation" numeric`,
);
}

View File

@ -54,7 +54,7 @@ export class ItemModel
@Column('bigint', { name: 'base_price', nullable: true })
base_price: number;
@Column('int', { name: 'play_estimation', nullable: true })
@Column('decimal', { name: 'play_estimation', nullable: true })
play_estimation: number;
@Column('boolean', { name: 'use_queue', default: false })