listo infracicon
This commit is contained in:
parent
c1383b5684
commit
f8421f204a
@ -34,7 +34,7 @@ import { Dia } from './dia/entity/dia.entity';
|
||||
import { Equipo } from './equipo/entity/equipo.entity';
|
||||
import { EquipoTipoEntrada } from './equipo-tipo-entrada/entity/equipo-tipo-entrada.entity';
|
||||
import { HoraExcepcion } from './hora-excepcion/entity/hora-excepcion.entity';
|
||||
import { Infraccion } from './infraccion/infraccion.entity';
|
||||
import { Infraccion } from './infraccion/entity/infraccion.entity';
|
||||
import { Institucion } from './institucion/entity/institucion.entity';
|
||||
import { InstitucionDia } from './institucion-dia/institucion-dia.entity';
|
||||
import { InstitucionInfraccion } from './institucion-infraccion/institucion-infraccion.entity';
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from 'typeorm';
|
||||
import { InstitucionInfraccion } from '../institucion-infraccion/institucion-infraccion.entity';
|
||||
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm';
|
||||
import { InstitucionInfraccion } from '../../institucion-infraccion/institucion-infraccion.entity';
|
||||
|
||||
@Entity()
|
||||
export class Infraccion {
|
||||
@PrimaryGeneratedColumn()
|
||||
id_infraccion: number;
|
||||
|
||||
@Column()
|
||||
@Column({ type: String, nullable: false, length: 100 })
|
||||
infraccion: string;
|
||||
|
||||
@OneToMany(
|
@ -1,18 +0,0 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { InfraccionController } from './infraccion.controller';
|
||||
|
||||
describe('InfraccionController', () => {
|
||||
let controller: InfraccionController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [InfraccionController],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<InfraccionController>(InfraccionController);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
@ -1,4 +0,0 @@
|
||||
import { Controller } from '@nestjs/common';
|
||||
|
||||
@Controller('infraccion')
|
||||
export class InfraccionController {}
|
@ -1,10 +1,8 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { InfraccionController } from './infraccion.controller';
|
||||
import { Infraccion } from './infraccion.entity';
|
||||
import { Infraccion } from './entity/infraccion.entity';
|
||||
|
||||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([Infraccion])],
|
||||
controllers: [InfraccionController],
|
||||
})
|
||||
export class InfraccionModule {}
|
||||
|
@ -6,7 +6,7 @@ import {
|
||||
ManyToOne,
|
||||
JoinColumn,
|
||||
} from 'typeorm';
|
||||
import { Infraccion } from '../infraccion/infraccion.entity';
|
||||
import { Infraccion } from '../infraccion/entity/infraccion.entity';
|
||||
import { Institucion } from '../institucion/entity/institucion.entity';
|
||||
import { Multa } from '../multa/multa.entity';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user