Artteiv's picture
refactor migrations
6f39f03
raw
history blame
455 Bytes
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;
}