import { Column, Entity, PrimaryGeneratedColumn } from "../../../../src/index"
import { User } from "./User"
import { ManyToOne } from "../../../../src/decorator/relations/ManyToOne"

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

    @Column()
    name: string

    @ManyToOne(() => User)
    user: User
}
