Files
Iris_back/src/cuestionario-programa2/entities/cuestionario-programa2.entity.ts
T

91 lines
2.3 KiB
TypeScript
Raw Normal View History

2025-05-20 15:53:57 -06:00
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_*
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_A_1: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_A_2: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_A_3: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_A_4: string;
// Sección p3_B_*
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_B_1: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_B_2: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_B_3: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_B_4: string;
// Sección p3_C_*
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_C_1: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_C_2: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_C_3: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_C_4: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_C_5: string;
// Sección p3_D_*
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_D_1: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_D_2: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_D_3: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_D_4: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_D_5: string;
// Sección p3_E_*
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p3_E_1: string;
// p1, p2, p4, p5, p6
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 100, nullable: false })
2025-05-20 15:53:57 -06:00
p1: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 50, nullable: false })
2025-05-20 15:53:57 -06:00
p2: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 100, nullable: false })
2025-05-20 15:53:57 -06:00
p4: string;
2025-05-26 15:29:47 -06:00
@Column({ type: 'varchar', length: 5, nullable: false })
2025-05-20 15:53:57 -06:00
p5: string;
@Column({ type: 'varchar', length: 100, nullable: true })
2025-05-26 15:29:47 -06:00
p6?: string;
2025-05-20 15:53:57 -06:00
@OneToMany(()=>Servicio,(servicio)=>servicio.cuestionarioAlumno2)
servicio:Servicio[];
}