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

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

    @Column()
    description: string

    @Column()
    uri: string

    @Column()
    userId: number

    @ManyToOne(() => User, (user) => user.photos)
    user: User
}
