actualización tablas
This commit is contained in:
@@ -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[];
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user