Spaces:
Runtime error
Runtime error
| import { | |
| Entity, | |
| PrimaryGeneratedColumn, | |
| Column, | |
| ManyToOne, | |
| JoinColumn, | |
| CreateDateColumn, | |
| UpdateDateColumn, | |
| } from 'typeorm'; | |
| ('Employees') | |
| export class Employee { | |
| () | |
| EmployeeID: number; | |
| ({ length: 20 }) | |
| LastName: string; | |
| ({ length: 10 }) | |
| FirstName: string; | |
| ({ length: 30, nullable: true }) | |
| Title: string; | |
| ({ length: 25, nullable: true }) | |
| TitleOfCourtesy: string; | |
| ({ type: 'timestamp', nullable: true }) | |
| BirthDate: Date; | |
| ({ type: 'timestamp', nullable: true }) | |
| HireDate: Date; | |
| ({ length: 60, nullable: true }) | |
| Address: string; | |
| ({ length: 15, nullable: true }) | |
| City: string; | |
| ({ length: 15, nullable: true }) | |
| Region: string; | |
| ({ length: 10, nullable: true }) | |
| PostalCode: string; | |
| ({ length: 15, nullable: true }) | |
| Country: string; | |
| ({ length: 24, nullable: true }) | |
| HomePhone: string; | |
| ({ length: 4, nullable: true }) | |
| Extension: string; | |
| ({ type: 'text', nullable: true }) | |
| Notes: string; | |
| (() => Employee) | |
| ({ name: 'ReportsTo' }) | |
| ReportsTo: Employee; | |
| ({ type: 'timestamp' }) | |
| createdAt: Date; | |
| ({ type: 'timestamp' }) | |
| updatedAt: Date; | |
| } | |