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
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 购买方信息
 */
@Entity('t_basicdata_buyer')
export class BasicdataBuyerEntity extends BaseEntity {
  @Index()
  @Column({ comment: '部门ID', type: 'bigint', nullable: true })
  departmentId: number;
 
  departmentName: string;
 
  @Index({ unique: true })
  @Column({ comment: '代码', length: 50 })
  code: string;
 
  @Column({ comment: '名称', length: 200 })
  name: string;
 
  @Column({ comment: '地址', length: 255, nullable: true })
  address: string;
 
  @Column({ comment: '联系人', length: 50, nullable: true })
  contact: string;
 
  @Column({ comment: '联系电话', length: 50, nullable: true })
  phone: string;
 
  @Column({ comment: '备注', type: 'text', nullable: true })
  remark: string;
}