wangzhibo
7 天以前 665ba0f9ae078c2859209451a163d10515171d11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 分拣人员信息
 */
@Entity('t_basicdata_sorter')
export class BasicdataSorterEntity extends BaseEntity {
  @Index({ unique: true })
  @Column({ comment: '身份证号', length: 32, nullable: true })
  businessId: string;
 
  @Column({ comment: '姓名', length: 64 })
  businessName: string;
 
  @Column({ comment: '手机号', length: 32 })
  phone: string;
 
  @Column({ comment: '密码', length: 32, nullable: true })
  password: string;
 
  @Column({ comment: '性别', dict: ['未知', '男', '女'], default: '男' })
  sex: string;
 
  @Column({ comment: '生日', type: 'date', nullable: true })
  birthday: Date;
 
  @Column({ comment: '入职日期', type: 'date', nullable: true })
  hireDate: Date;
 
  @Column({ comment: '离职日期', type: 'date', nullable: true })
  leaveDate: Date;
 
  @Column({ comment: '状态', dict: ['在职', '离职', '禁用'], default: 0 })
  status: number;
 
  @Index()
  @Column({ comment: '所属单位', type: 'bigint', nullable: true })
  departmentId: number;
 
  // 部门名称
  departmentName: string;
 
  @Column({ comment: '工作站点编码', nullable: true })
  workSiteId: string;
 
  workSiteName: string;
 
  @Column({ comment: '身份证正面照', nullable: true })
  idCardFront: string;
 
  @Column({ comment: '身份证反面照', nullable: true })
  idCardBack: string;
 
  @Column({ comment: '备注', nullable: true })
  remark: string;
}