13 lines
293 B
TypeScript
13 lines
293 B
TypeScript
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[];
|
|
}
|