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()
|
@Entity()
|
||||||
export class InstitucionPrograma {
|
export class InstitucionPrograma {
|
||||||
@PrimaryGeneratedColumn()
|
@PrimaryGeneratedColumn()
|
||||||
id_institucion_carrera: number;
|
id_institucion_programa: number;
|
||||||
|
|
||||||
@Column({ type: Boolean, nullable: false, default: false })
|
@Column({ type: Boolean, nullable: false, default: false })
|
||||||
mostrar: boolean;
|
mostrar: boolean;
|
||||||
|
@ -19,6 +19,9 @@ export class Usuario {
|
|||||||
@Column({ type: Boolean, nullable: false, default: false })
|
@Column({ type: Boolean, nullable: false, default: false })
|
||||||
activo: boolean;
|
activo: boolean;
|
||||||
|
|
||||||
|
@Column({ type: String, nullable: false, length: 60, default: '' })
|
||||||
|
correo: string;
|
||||||
|
|
||||||
@Column({ type: Boolean, nullable: false, default: false })
|
@Column({ type: Boolean, nullable: false, default: false })
|
||||||
multa: boolean;
|
multa: boolean;
|
||||||
|
|
||||||
@ -34,7 +37,10 @@ export class Usuario {
|
|||||||
@Column({ type: String, nullable: false, length: 10 })
|
@Column({ type: String, nullable: false, length: 10 })
|
||||||
usuario: string;
|
usuario: string;
|
||||||
|
|
||||||
@ManyToOne(() => InstitucionCarrera, (institucionCarrera) => institucionCarrera.usuarios)
|
@ManyToOne(
|
||||||
|
() => InstitucionCarrera,
|
||||||
|
(institucionCarrera) => institucionCarrera.usuarios,
|
||||||
|
)
|
||||||
@JoinColumn({ name: 'id_institucion_carrera' })
|
@JoinColumn({ name: 'id_institucion_carrera' })
|
||||||
carrera?: InstitucionCarrera;
|
carrera?: InstitucionCarrera;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user