Files
api/src/entity/Lugar.ts
T

13 lines
293 B
TypeScript
Raw Normal View History

2020-07-24 01:32:59 -05:00
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[];
}