import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity({name: "media"})
export default class MediaEntity {

    constructor(id?: number){
        this.id = id;
    }

    @PrimaryGeneratedColumn()
    id?: number;

    @Column()
    uuid?: string;

    @Column()
    extension?: string;

    @Column()
    title?: string;

    @Column(
        { type: "datetime", name: "created_at" }
    )
    createdAt?: Date;

    @Column(
        { type: "datetime", name: "updated_at" }
    )
    updatedAt?: Date;

}