import { Entity } from "../../../../src/index"
import { ManyToOne } from "../../../../src/decorator/relations/ManyToOne"
import { Dog } from "./Dog"
import { PrimaryGeneratedColumn } from "../../../../src/decorator/columns/PrimaryGeneratedColumn"

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

    // @Column()
    // dogDogID: string; // Need to do this to allow the Foreign Key to work

    @ManyToOne(() => Dog, (dog) => dog.cats)
    dog: Dog
}
