Spaces:
Runtime error
Runtime error
| import { | |
| Entity, | |
| PrimaryGeneratedColumn, | |
| Column, | |
| CreateDateColumn, | |
| UpdateDateColumn, | |
| } from 'typeorm'; | |
| ('Categories') | |
| export class Category { | |
| () | |
| CategoryID: number; | |
| ({ length: 15 }) | |
| CategoryName: string; | |
| ({ type: 'text', nullable: true }) | |
| Description: string; | |
| ({ type: 'bytea', nullable: true }) // Use `blob` for MySQL | |
| Picture: Buffer; | |
| ({ type: 'timestamp' }) | |
| createdAt: Date; | |
| ({ type: 'timestamp' }) | |
| updatedAt: Date; | |
| } | |