organizacion de institucion y modulo
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user