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