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

@Entity()
export class Note {
    @PrimaryGeneratedColumn()
    public id: number

    @Column()
    public label: string

    @ManyToOne(() => Person, (person) => person.notes, { lazy: true })
    public owner: Promise<Person> | Person
}
