Files
Iris_back/src/cuestionario-programa2/entities/cuestionario-programa2.entity.ts
T
2025-05-26 15:29:47 -06:00

91 lines
2.3 KiB
TypeScript

import { Servicio } from "src/servicio/entities/servicio.entity";
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from "typeorm";
@Entity('cuestionario_programa_2')
export class CuestionarioPrograma2 {
@PrimaryGeneratedColumn()
idCuestionarioPrograma2: number;
// Sección p3_A_*
@Column({ type: 'varchar', length: 50, nullable: false })
p3_A_1: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_A_2: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_A_3: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_A_4: string;
// Sección p3_B_*
@Column({ type: 'varchar', length: 50, nullable: false })
p3_B_1: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_B_2: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_B_3: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_B_4: string;
// Sección p3_C_*
@Column({ type: 'varchar', length: 50, nullable: false })
p3_C_1: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_C_2: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_C_3: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_C_4: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_C_5: string;
// Sección p3_D_*
@Column({ type: 'varchar', length: 50, nullable: false })
p3_D_1: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_D_2: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_D_3: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_D_4: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p3_D_5: string;
// Sección p3_E_*
@Column({ type: 'varchar', length: 50, nullable: false })
p3_E_1: string;
// p1, p2, p4, p5, p6
@Column({ type: 'varchar', length: 100, nullable: false })
p1: string;
@Column({ type: 'varchar', length: 50, nullable: false })
p2: string;
@Column({ type: 'varchar', length: 100, nullable: false })
p4: string;
@Column({ type: 'varchar', length: 5, nullable: false })
p5: string;
@Column({ type: 'varchar', length: 100, nullable: true })
p6?: string;
@OneToMany(()=>Servicio,(servicio)=>servicio.cuestionarioAlumno2)
servicio:Servicio[];
}