Artteiv's picture
fix: update branch admin
9e8f9e3
raw
history blame contribute delete
538 Bytes
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;
}