variables ids faltantes
This commit is contained in:
@@ -18,6 +18,9 @@ export class HoraExcepcion {
|
||||
@Column({ type: String, nullable: false })
|
||||
hora_inicio: string;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_institucion_dia: number;
|
||||
|
||||
@ManyToOne(
|
||||
() => InstitucionDia,
|
||||
(institucionDia) => institucionDia.horasExcepcion,
|
||||
|
||||
@@ -20,6 +20,9 @@ export class Carrera {
|
||||
@Column({ type: String, nullable: false, length: 10 })
|
||||
clave: string;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_nivel: number;
|
||||
|
||||
@ManyToOne(() => Nivel, (nivel) => nivel.carreras)
|
||||
@JoinColumn({ name: 'id_nivel' })
|
||||
nivel: Nivel;
|
||||
|
||||
@@ -19,6 +19,12 @@ export class InstitucionCarrera {
|
||||
@Column({ type: String, nullable: true, length: 4, default: null })
|
||||
clave_alt: string;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_carrera: number;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_institucion: number;
|
||||
|
||||
@ManyToOne(() => Carrera, (carrera) => carrera.instituciones, { eager: true })
|
||||
@JoinColumn({ name: 'id_carrera' })
|
||||
carrera: Carrera;
|
||||
|
||||
@@ -12,9 +12,6 @@ export class Nivel {
|
||||
@Column({ type: String, nullable: false, length: 40 })
|
||||
nivel: string;
|
||||
|
||||
@OneToMany(
|
||||
() => Carrera,
|
||||
(carrera) => carrera.nivel,
|
||||
)
|
||||
@OneToMany(() => Carrera, (carrera) => carrera.nivel)
|
||||
carreras: Carrera[];
|
||||
}
|
||||
|
||||
@@ -30,6 +30,12 @@ export class InstitucionDia {
|
||||
@Column({ type: String, nullable: false, default: '19:45', length: 5 })
|
||||
hora_tope: string;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_dia: number;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_institucion: number;
|
||||
|
||||
@ManyToOne(() => Dia, (dia) => dia.institucionesDias, { eager: true })
|
||||
@JoinColumn({ name: 'id_dia' })
|
||||
dia: Dia;
|
||||
|
||||
@@ -18,11 +18,15 @@ export class InstitucionInfraccion {
|
||||
@Column({ type: Number, nullable: false, default: 7 })
|
||||
dias_multa: number;
|
||||
|
||||
@ManyToOne(
|
||||
() => Infraccion,
|
||||
(infraccion) => infraccion.instituciones,
|
||||
{ eager: true },
|
||||
)
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_infraccion: number;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_institucion: number;
|
||||
|
||||
@ManyToOne(() => Infraccion, (infraccion) => infraccion.instituciones, {
|
||||
eager: true,
|
||||
})
|
||||
@JoinColumn({ name: 'id_infraccion' })
|
||||
infraccion: Infraccion;
|
||||
|
||||
|
||||
@@ -16,6 +16,12 @@ export class InstitucionPrograma {
|
||||
@Column({ type: Boolean, nullable: false, default: false })
|
||||
mostrar: boolean;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_institucion: number;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_programa: number;
|
||||
|
||||
@ManyToOne(() => Institucion, (institucion) => institucion.programas)
|
||||
@JoinColumn({ name: 'id_institucion' })
|
||||
institucion: Institucion;
|
||||
|
||||
@@ -16,6 +16,12 @@ export class InstitucionTipoCarrito {
|
||||
@Column({ type: Boolean, nullable: false, default: false })
|
||||
mostrar: boolean;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_institucion: number;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_tipo_carrito: number;
|
||||
|
||||
@ManyToOne(() => Institucion, (institucion) => institucion.tiposCarrito)
|
||||
@JoinColumn({ name: 'id_institucion' })
|
||||
institucion: Institucion;
|
||||
|
||||
@@ -16,6 +16,12 @@ export class InstitucionTipoEntrada {
|
||||
@Column({ type: Boolean, nullable: false, default: false })
|
||||
mostrar: boolean;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_institucion: number;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_tipo_entrada: number;
|
||||
|
||||
@ManyToOne(() => Institucion, (institucion) => institucion.tiposEntrada)
|
||||
@JoinColumn({ name: 'id_institucion' })
|
||||
institucion: Institucion;
|
||||
|
||||
@@ -19,6 +19,12 @@ export class InstitucionUsuario {
|
||||
@Column({ type: Boolean, nullable: false, default: false })
|
||||
multa: boolean;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_institucion_carrera: number;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_usuario: number;
|
||||
|
||||
@ManyToOne(
|
||||
() => InstitucionCarrera,
|
||||
(institucionCarrera) => institucionCarrera.usuarios,
|
||||
|
||||
@@ -20,6 +20,9 @@ export class Modulo {
|
||||
@Column({ type: String, nullable: false, length: 30 })
|
||||
modulo: string;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_institucion: number;
|
||||
|
||||
@ManyToOne(() => Institucion, (institucion) => institucion.modulos, {
|
||||
eager: true,
|
||||
})
|
||||
|
||||
@@ -29,6 +29,15 @@ export class Multa {
|
||||
@Column({ type: Boolean, nullable: false, default: false })
|
||||
retraso: boolean;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_institucion_infraccion: number;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_operador: number;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_prestamo: number;
|
||||
|
||||
@ManyToOne(
|
||||
() => InstitucionInfraccion,
|
||||
(institucionInfraccion) => institucionInfraccion.multas,
|
||||
|
||||
@@ -40,6 +40,18 @@ export class Prestamo {
|
||||
@Column({ type: Date, nullable: false })
|
||||
hora_max_recoger: Date;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_equipo: number;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_operador_entrega: number;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_operador_regreso: number;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_usuario: number;
|
||||
|
||||
@ManyToOne(() => Equipo, (equipo) => equipo.prestamos, { eager: true })
|
||||
@JoinColumn({ name: 'id_equipo' })
|
||||
equipo: Equipo;
|
||||
|
||||
@@ -33,6 +33,9 @@ export class Usuario {
|
||||
@Column({ type: String, nullable: false, length: 10 })
|
||||
usuario: string;
|
||||
|
||||
@Column({ type: Number, nullable: true })
|
||||
id_tipo_usuario: number;
|
||||
|
||||
@ManyToOne(() => TipoUsuario, (tipoUsuario) => tipoUsuario.usuarios, {
|
||||
eager: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user