Spaces:
Runtime error
Runtime error
| import { | |
| Entity, | |
| PrimaryGeneratedColumn, | |
| Column, | |
| ManyToOne, | |
| JoinColumn, | |
| CreateDateColumn, | |
| UpdateDateColumn, | |
| } from 'typeorm'; | |
| import { Supplier } from './supplier.entity'; | |
| import { Category } from './category.entity'; | |
| ('Products') | |
| export class Product { | |
| () | |
| ProductID: number; | |
| ({ length: 40 }) | |
| ProductName: string; | |
| (() => Supplier) | |
| ({ name: 'SupplierID' }) | |
| Supplier: Supplier; | |
| (() => Category) | |
| ({ name: 'CategoryID' }) | |
| Category: Category; | |
| ({ length: 20, nullable: true }) | |
| QuantityPerUnit: string; | |
| ('decimal', { precision: 18, scale: 2, nullable: true }) | |
| UnitPrice: number; | |
| ({ type: 'smallint', nullable: true }) | |
| UnitsInStock: number; | |
| ({ type: 'smallint', nullable: true }) | |
| UnitsOnOrder: number; | |
| ({ type: 'smallint', nullable: true }) | |
| ReorderLevel: number; | |
| () | |
| Discontinued: boolean; | |
| ({ type: 'timestamp' }) | |
| createdAt: Date; | |
| ({ type: 'timestamp' }) | |
| updatedAt: Date; | |
| } | |