actualización tablas

This commit is contained in:
2025-04-01 13:14:30 -06:00
parent 2809dbf33e
commit eeba1c2120
7 changed files with 127 additions and 3 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import { PreguntaOpcion } from "src/pregunta_opcion/entities/pregunta_opcion.entity";
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from "typeorm";
@Entity()
@@ -8,7 +9,7 @@ export class Opcion {
@Column({ type: String, nullable: false, length: 200, default: '' })
opcion: string;
@OneToMany(() => PreguntaOpcion, (preguntaOpcion) => preguntaOpcion.Opcion)
@OneToMany(() => PreguntaOpcion, (preguntaOpcion) => preguntaOpcion.id_opcion)
Preguntas: PreguntaOpcion[];