import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, } from 'typeorm';

@Entity()
export class ImageUploads {
    @PrimaryGeneratedColumn()
    id!: number;

    @Column({
        nullable: true,
    })
    filename!: string;

    @Column({
        nullable: true,
    })
    path!: string;

    @Column({
        nullable: true,
    })
    title?: string;

    @CreateDateColumn()
    created_at?: Date

    // @OneToMany(()=>(Blog), (blog)=>(blog.blog_image))
    // blog?: Promise<Blog>
}
