import { Entity, Column, BaseEntity, PrimaryGeneratedColumn } from 'typeorm'; @Entity('feeds') export class FeedEntity extends BaseEntity { @PrimaryGeneratedColumn() id: number; @Column({ nullable: true }) author_id: string; @Column({ nullable: true }) image_url: string; @Column() title: string; @Column({ nullable: true }) description: string; @Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }) create_at: Date; }