import { Entity, OneToMany } from 'typeorm'
import { Catalogo } from './Catalogo'
import { Prestamo } from './Prestamo'

@Entity()
export class Mesa extends Catalogo {
  @OneToMany(
    (type) => Prestamo,
    (prestamo) => prestamo.mesa
  )
  prestamos: Prestamo[]
}
