correción de datos en tabla institucion programa!

This commit is contained in:
lemuel 2022-05-13 12:16:24 -05:00
parent 7b1e0237bd
commit 6d674b5607
2 changed files with 8 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import { Programa } from '../../programa/entity/programa.entity';
@Entity()
export class InstitucionPrograma {
@PrimaryGeneratedColumn()
id_institucion_carrera: number;
id_institucion_programa: number;
@Column({ type: Boolean, nullable: false, default: false })
mostrar: boolean;

View File

@ -19,6 +19,9 @@ export class Usuario {
@Column({ type: Boolean, nullable: false, default: false })
activo: boolean;
@Column({ type: String, nullable: false, length: 60, default: '' })
correo: string;
@Column({ type: Boolean, nullable: false, default: false })
multa: boolean;
@ -34,7 +37,10 @@ export class Usuario {
@Column({ type: String, nullable: false, length: 10 })
usuario: string;
@ManyToOne(() => InstitucionCarrera, (institucionCarrera) => institucionCarrera.usuarios)
@ManyToOne(
() => InstitucionCarrera,
(institucionCarrera) => institucionCarrera.usuarios,
)
@JoinColumn({ name: 'id_institucion_carrera' })
carrera?: InstitucionCarrera;