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