multa listo

This commit is contained in:
xXpuma99Xx
2022-06-14 21:43:07 -05:00
parent 426ca54328
commit bc0fa5e3af
6 changed files with 43 additions and 23 deletions
+3 -2
View File
@@ -27,7 +27,7 @@ export class Multa {
@Column({ type: Date, nullable: false })
fecha_inicio: Date;
@Column({ type: Boolean, nullable: false })
@Column({ type: Boolean, nullable: false, default: false })
retraso: boolean;
@ManyToOne(
@@ -42,6 +42,7 @@ export class Multa {
@JoinColumn({ name: 'id_operador' })
opeardorMulta: Operador;
@OneToOne(() => Prestamo)
@ManyToOne(() => Prestamo, (prestamo) => prestamo.multa)
@JoinColumn({ name: 'id_prestamo' })
prestamo: Prestamo;
}