cambio de la base

This commit is contained in:
2025-11-11 13:59:10 -06:00
parent 01867a2dcd
commit 764ee7e5d3
3 changed files with 4 additions and 1 deletions
Binary file not shown.
Binary file not shown.
+4 -1
View File
@@ -66,7 +66,10 @@ export class Equipo {
tipoEquipo: TipoEquipo;
@JoinColumn({ name: 'id_procesador' })
@ManyToOne(() => Procesador, (procesador) => procesador.equipo)
@ManyToOne(() => Procesador, (procesador) => procesador.equipo, {
nullable: true,
onDelete: 'SET NULL',
})
procesador: Procesador;
@JoinColumn({ name: 'id_uso' })