cargamasviva
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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[];
|
||||
}
|
||||
Reference in New Issue
Block a user