Creacion de entities y servicios

This commit is contained in:
2025-09-17 16:35:52 -06:00
parent 8cc039947f
commit 54306452ab
26 changed files with 460 additions and 39 deletions
+8 -1
View File
@@ -1,3 +1,4 @@
import { DetalleServicio } from 'src/detalle_servicio/entities/detalle_servicio.entity';
import {
Column,
Entity,
@@ -51,4 +52,10 @@ export class User {
@ManyToOne(() => Perfil, (perfil) => perfil.usuarios, { eager: true })
@JoinColumn({ name: 'id_perfil' })
perfil: Perfil;
}
@OneToMany(
() => DetalleServicio,
(id_detalle_servicio) => id_detalle_servicio.id_perfil,
)
detalles_servicio: DetalleServicio[];
}