Explorar el Código

在财务和收入记录实体中新增了 delFlag 字段,默认为 false。

wuyi hace 4 meses
padre
commit
ec759be60b
Se han modificado 2 ficheros con 6 adiciones y 0 borrados
  1. 3 0
      src/entities/finance.entity.ts
  2. 3 0
      src/entities/income-records.entity.ts

+ 3 - 0
src/entities/finance.entity.ts

@@ -67,6 +67,9 @@ export class Finance {
   })
   })
   remark: string
   remark: string
 
 
+  @Column({ default: false })
+  delFlag: boolean
+
   @Column({
   @Column({
     type: 'datetime',
     type: 'datetime',
     nullable: true
     nullable: true

+ 3 - 0
src/entities/income-records.entity.ts

@@ -65,6 +65,9 @@ export class IncomeRecords {
   @Column({ nullable: true })
   @Column({ nullable: true })
   source: string
   source: string
 
 
+  @Column({ default: false })
+  delFlag: boolean
+
   @CreateDateColumn()
   @CreateDateColumn()
   createdAt: Date
   createdAt: Date