File size: 1,019 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,
  PrimaryColumn,
  Column,
  CreateDateColumn,
  UpdateDateColumn,
} from 'typeorm';

@Entity('Customers')
export class Customer {
  @PrimaryColumn({ type: 'char', length: 5 })
  CustomerID: string;

  @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({ length: 60, nullable: true })
  PhotoURL: string;

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

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