Просмотр исходного кода

refactor(company): 移除 Entity 中未使用的字段

移除 company_type、registration_date、is_disabled_enterprise 三个未使用的字段定义,保持代码与数据库实际结构一致。

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 4 дней назад
Родитель
Сommit
6170512165
1 измененных файлов с 0 добавлено и 24 удалено
  1. 0 24
      allin-packages/company-module/src/entities/company.entity.ts

+ 0 - 24
allin-packages/company-module/src/entities/company.entity.ts

@@ -66,30 +66,6 @@ export class Company {
   })
   })
   address!: string | null;
   address!: string | null;
 
 
-  @Column({
-    name: 'company_type',
-    type: 'varchar',
-    length: 50,
-    nullable: true,
-    comment: '企业类型'
-  })
-  companyType!: string | null;
-
-  @Column({
-    name: 'registration_date',
-    type: 'date',
-    nullable: true,
-    comment: '注册日期'
-  })
-  registrationDate!: Date | null;
-
-  @Column({
-    name: 'is_disabled_enterprise',
-    type: 'boolean',
-    default: false,
-    comment: '是否为残疾人企业'
-  })
-  isDisabledEnterprise!: boolean;
 
 
   @Column({
   @Column({
     name: 'status',
     name: 'status',