wuyi 1 anno fa
parent
commit
79bad31d02

+ 2 - 2
src/balance/entities/balance.entities.ts

@@ -11,14 +11,14 @@ export class Balance {
     userId: number
 
     @Column('decimal', {
-        precision: 10,
+        precision: 15,
         scale: 2,
         default: 0.00
     })
     currentBalance: number
 
     @Column('decimal', {
-        precision: 10,
+        precision: 15,
         scale: 2,
         default: 0.00
     })

+ 1 - 1
src/task/entities/task-item.entity.ts

@@ -30,7 +30,7 @@ export class TaskItem {
     @Index()
     status: string
 
-    @CreateDateColumn({ nullable: true })
+    @Column({ type: 'datetime', precision: 6, nullable: true })
     @Index()
     sendAt: Date
 

+ 2 - 2
src/users/entities/users.entity.ts

@@ -42,14 +42,14 @@ export class Users {
     deviceId: string
 
     @Column('decimal', {
-        precision: 10,
+        precision: 15,
         scale: 2,
         default: 0.00
     })
     balance: number
 
     @Column('decimal', {
-        precision: 10,
+        precision: 15,
         scale: 2,
         default: 0.00
     })