import {
    Entity,
    PrimaryGeneratedColumn,
    Column,
    ManyToOne,
} from "../../../../src"
import { Post } from "./Post"

@Entity()
export class PostReview {
    @PrimaryGeneratedColumn()
    id: number

    @Column()
    rating: number

    @Column()
    comment: string

    @ManyToOne(() => Post)
    post: Post
}
