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

@Entity()
export class Likes {

    @PrimaryGeneratedColumn()
    id: number;

    @Index()
    @Column()
    userId: number;

    @Column()
    targetId: number;

    @Column()
    type: number;

    @Column({ default: true })
    isValid: boolean

    @CreateDateColumn()
    createdAt: Date

}