import { Entity, Column, BaseEntity, PrimaryGeneratedColumn, CreateDateColumn, DeleteDateColumn, } 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; @CreateDateColumn() create_at: Date; @DeleteDateColumn() delete_at: Date; }