import {
    Column,
    Entity,
    OneToMany,
    PrimaryGeneratedColumn,
} from "../../../../src"
import { TicketProduct } from "./TicketProduct"

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

    @Column()
    shopId: string

    @Column()
    chainId: string

    @OneToMany(() => TicketProduct, (ticketProduct) => ticketProduct.ticket)
    ticketItems: TicketProduct[]
}
