organizacion de institucion y modulo

This commit is contained in:
xXpuma99Xx
2022-04-16 14:37:17 -05:00
parent 594af0cde9
commit 29bb3fe79b
13 changed files with 56 additions and 56 deletions
+8 -8
View File
@@ -1,25 +1,25 @@
import {
Entity,
Column,
PrimaryGeneratedColumn,
OneToMany,
ManyToOne,
Entity,
JoinColumn,
ManyToOne,
OneToMany,
PrimaryGeneratedColumn,
} from 'typeorm';
import { Carrito } from '../../carrito/carrito.entity';
import { Institucion } from '../../institucion/institucion.entity';
import { Institucion } from '../../institucion/entity/institucion.entity';
@Entity()
export class Modulo {
@PrimaryGeneratedColumn()
id_modulo: number;
@Column({ type: String, nullable: false, length: 50 })
modulo: string;
@Column({ type: Boolean, nullable: false, default: false })
activo: boolean;
@Column({ type: String, nullable: false, length: 50 })
modulo: string;
@ManyToOne(() => Institucion, (institucion) => institucion.modulos, {
eager: true,
})