se crearon algunas tablas
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { CuestionarioSeccion } from 'src/cuestionario_seccion/entities/cuestionario_seccion.entity';
|
||||
import { SeccionPregunta } from 'src/seccion_pregunta/entities/seccion_pregunta.entity';
|
||||
import { Entity, PrimaryGeneratedColumn, Column, OneToMany } from 'typeorm';
|
||||
|
||||
@Entity('seccion')
|
||||
export class Seccion {
|
||||
@PrimaryGeneratedColumn()
|
||||
id_seccion: number;
|
||||
|
||||
@Column({ type: 'int' })
|
||||
contador_pregunta: number;
|
||||
|
||||
@Column({ type: 'text', nullable: true })
|
||||
descripcion: string;
|
||||
|
||||
@Column({ type: 'text', nullable: true })
|
||||
titulo: string;
|
||||
|
||||
@OneToMany(() => CuestionarioSeccion,(cuestionario_seccion) => cuestionario_seccion.id_seccion )
|
||||
seccion:CuestionarioSeccion[];
|
||||
|
||||
@OneToMany(()=> SeccionPregunta, (seccion_pregunta)=> seccion_pregunta.id_seccion)
|
||||
seccion_pregunta:SeccionPregunta[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user