Преглед изворни кода

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

wuyi пре 4 месеци
родитељ
комит
ec759be60b
2 измењених фајлова са 6 додато и 0 уклоњено
  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
 
+  @Column({ default: false })
+  delFlag: boolean
+
   @Column({
     type: 'datetime',
     nullable: true

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

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