correción de datos en tabla institucion programa!
This commit is contained in:
parent
7b1e0237bd
commit
6d674b5607
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user