From 73ef0d982bc285f57d410286857a88b1ff84b90c Mon Sep 17 00:00:00 2001 From: Jorge Miguel Alvarado Reyes Date: Wed, 17 Jan 2024 16:35:20 -0600 Subject: [PATCH] Requisitos -> Obervaciones, longitud 60 -> 300 --- src/eventos/evento.entity.ts | 53 +++++++++++++++++------------------- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/src/eventos/evento.entity.ts b/src/eventos/evento.entity.ts index 0b8bedd..e4abbcc 100644 --- a/src/eventos/evento.entity.ts +++ b/src/eventos/evento.entity.ts @@ -14,52 +14,52 @@ export class Evento { @PrimaryGeneratedColumn() id_evento: number; - @Column({length: 70, nullable: false }) + @Column({ length: 70, nullable: false }) nombre: string; - - @Column({length: 15, nullable: false }) + + @Column({ length: 15, nullable: false }) tipo_evento: string; - @Column({length: 100,nullable: false}) - organizadores: string + @Column({ length: 100, nullable: false }) + organizadores: string; - @Column({length:30 ,nullable: true}) - proyecto: string - - @Column({length: 40,nullable: false}) - modalidad: string - - @Column({length: 60,nullable: false }) + @Column({ length: 30, nullable: true }) + proyecto: string; + + @Column({ length: 40, nullable: false }) + modalidad: string; + + @Column({ length: 60, nullable: false }) lugar: string; - @Column({nullable: false}) + @Column({ nullable: false }) cupo: number; - @Column({length: 60, nullable: false }) - requisitos: string; + @Column({ length: 300, nullable: false }) + observaciones: string; - @Column({type:'decimal', precision: 7, scale: 2, nullable: true }) + @Column({ type: 'decimal', precision: 7, scale: 2, nullable: true }) cuota_inscripcion: number; - @Column({length: 50, nullable: true }) + @Column({ length: 50, nullable: true }) patrocinador: string; - @Column({length: 40, nullable: true }) + @Column({ length: 40, nullable: true }) tipo_acreditacion: string; - @Column({length: 200 ,nullable: false}) - objetivo: string + @Column({ length: 200, nullable: false }) + objetivo: string; @Column({ nullable: false, type: 'datetime' }) fecha_inicio: Date; - + @Column({ nullable: false, type: 'datetime' }) fecha_fin: Date; - + @Column({ nullable: false, type: 'datetime' }) fecha_limite_inscripcion: Date; - @Column({length:40 ,nullable: true }) + @Column({ length: 40, nullable: true }) horario: string; @Column({ nullable: true }) @@ -71,9 +71,6 @@ export class Evento { ) eventoParticipantes: EventoParticipante[]; - @OneToMany( - () => EquipoEvento, (equipoEvento) => equipoEvento.evento - ) - equipoEvento: EquipoEvento - + @OneToMany(() => EquipoEvento, (equipoEvento) => equipoEvento.evento) + equipoEvento: EquipoEvento; }