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

@Entity()
export class Lugar extends Catalogo {
  @OneToMany(
    (type) => Reservacion,
    (reservacion) => reservacion.lugar
  )
  reservaciones: Reservacion[];
}
