prestamo terminado

This commit is contained in:
arturo
2020-08-24 21:25:39 -05:00
parent 9c780cb1cb
commit 22d6964054
5 changed files with 253 additions and 4 deletions
+6 -1
View File
@@ -17,9 +17,12 @@ export class Prestamo {
@PrimaryGeneratedColumn()
id: number
@Column({ default: true })
@Column({ default: false })
activo: boolean
@Column({ default: true })
reservado: boolean
@UpdateDateColumn()
updatedAt: Date
@@ -28,6 +31,8 @@ export class Prestamo {
horaMaxEntrega: string
qr: string
@ManyToOne(
(type) => Usuario,
(usuario) => usuario.prestamos