wangzhibo
4 天以前 c19f1f7e21c93d1f13b4f44a8a615f65af577559
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
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 司机
 */
@Entity('t_basicdata_driver')
export class BasicdataDriverEntity extends BaseEntity {
  @Index({ unique: true })
  @Column({ comment: '身份证号', length: 64 })
  businessId: string;
 
  @Column({ comment: '司机姓名', length: 64 })
  businessName: string;
 
  @Column({ comment: '手机号', length: 32, nullable: true })
  phone: string;
 
  @Column({ comment: '驾驶证号', length: 64, nullable: true })
  licenseNo: string;
 
  @Column({ comment: '驾驶证有效期开始', nullable: true })
  licenseStartDate: Date;
 
  @Column({ comment: '驾驶证有效期结束', nullable: true })
  licenseEndDate: Date;
 
   @Index()
  @Column({ comment: '所属单位', type: 'bigint', nullable: true })
  departmentId: number;
 
  // 部门名称
  departmentName: string;
 
  @Column({ comment: '状态', dict: ['激活', '禁用'], default: 0 })
  status: number;
 
  @Column({ comment: '备注', length: 255, nullable: true })
  remark: string;
}