cargamasviva

This commit is contained in:
arturo
2020-08-18 11:13:12 -05:00
parent afac668378
commit a4709ec7d1
118 changed files with 18679 additions and 259 deletions
+44
View File
@@ -0,0 +1,44 @@
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne } from 'typeorm'
import { Usuario } from './Usuario'
import { Reporte } from './Reporte'
import { Equipo } from './Equipo'
import { Mesa } from './Mesa'
@Entity()
export class Prestamo {
@PrimaryGeneratedColumn()
id: number
@Column()
activo: boolean
@Column({ type: 'date' })
fechaInicio: string
@Column({ type: 'date' })
fechaFin: string
@ManyToOne(
(type) => Usuario,
(usuario) => usuario.prestamos
)
usuario: Usuario
@ManyToOne(
(type) => Mesa,
(mesa) => mesa.prestamos
)
mesa: Mesa
@ManyToOne(
(type) => Reporte,
(reporte) => reporte.prestamos
)
reporte: Reporte
@ManyToOne(
(type) => Equipo,
(equipo) => equipo.prestamos
)
equipo: Equipo
}