File size: 455 Bytes
6f39f03
2fc4f90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f39f03
2fc4f90
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { Entity, Column, BaseEntity, PrimaryGeneratedColumn, CreateDateColumn } 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;
}