File size: 1,012 Bytes
97dab2a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import {
  Entity,
  PrimaryGeneratedColumn,
  Column,
  CreateDateColumn,
  UpdateDateColumn,
} from 'typeorm';

@Entity('Suppliers')
export class Supplier {
  @PrimaryGeneratedColumn()
  SupplierID: number;

  @Column({ length: 40 })
  CompanyName: string;

  @Column({ length: 30, nullable: true })
  ContactName: string;

  @Column({ length: 30, nullable: true })
  ContactTitle: string;

  @Column({ length: 60, nullable: true })
  Address: string;

  @Column({ length: 15, nullable: true })
  City: string;

  @Column({ length: 15, nullable: true })
  Region: string;

  @Column({ length: 10, nullable: true })
  PostalCode: string;

  @Column({ length: 15, nullable: true })
  Country: string;

  @Column({ length: 24, nullable: true })
  Phone: string;

  @Column({ length: 24, nullable: true })
  Fax: string;

  @Column({ type: 'text', nullable: true })
  HomePage: string;

  @CreateDateColumn({ type: 'timestamp' })
  createdAt: Date;

  @UpdateDateColumn({ type: 'timestamp' })
  updatedAt: Date;
}