listo tipo entrada
This commit is contained in:
parent
255ce967ee
commit
93f40bce1a
@ -46,7 +46,7 @@ import { Prestamo } from './prestamo/entity/prestamo.entity';
|
|||||||
import { Programa } from './programa/entity/programa.entity';
|
import { Programa } from './programa/entity/programa.entity';
|
||||||
import { Status } from './status/entity/status.entity';
|
import { Status } from './status/entity/status.entity';
|
||||||
import { TipoCarrito } from './tipo-carrito/entity/tipo-carrito.entity';
|
import { TipoCarrito } from './tipo-carrito/entity/tipo-carrito.entity';
|
||||||
import { TipoEntrada } from './tipo-entrada/tipo-entrada.entity';
|
import { TipoEntrada } from './tipo-entrada/entity/tipo-entrada.entity';
|
||||||
import { TipoUsuario } from './tipo-usuario/tipo-usuario.entity';
|
import { TipoUsuario } from './tipo-usuario/tipo-usuario.entity';
|
||||||
import { Usuario } from './usuario/usuario.entity';
|
import { Usuario } from './usuario/usuario.entity';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
|
import { Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
|
||||||
import { Equipo } from '../../equipo/entity/equipo.entity';
|
import { Equipo } from '../../equipo/entity/equipo.entity';
|
||||||
import { TipoEntrada } from '../../tipo-entrada/tipo-entrada.entity';
|
import { TipoEntrada } from '../../tipo-entrada/entity/tipo-entrada.entity';
|
||||||
|
|
||||||
@Entity()
|
@Entity()
|
||||||
export class EquipoTipoEntrada {
|
export class EquipoTipoEntrada {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from 'typeorm';
|
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm';
|
||||||
import { EquipoTipoEntrada } from '../equipo-tipo-entrada/entity/equipo-tipo-entrada.entity';
|
import { EquipoTipoEntrada } from '../../equipo-tipo-entrada/entity/equipo-tipo-entrada.entity';
|
||||||
|
|
||||||
@Entity()
|
@Entity()
|
||||||
export class TipoEntrada {
|
export class TipoEntrada {
|
||||||
@PrimaryGeneratedColumn()
|
@PrimaryGeneratedColumn()
|
||||||
id_tipo_entrada: number;
|
id_tipo_entrada: number;
|
||||||
|
|
||||||
@Column()
|
@Column({ type: String, nullable: false, length: 20 })
|
||||||
tipo_entrada: string;
|
tipo_entrada: string;
|
||||||
|
|
||||||
@OneToMany(
|
@OneToMany(
|
@ -1,7 +1,10 @@
|
|||||||
import { Controller } from '@nestjs/common';
|
import { Controller, Get } from '@nestjs/common';
|
||||||
import { TipoEntradaService } from './tipo-entrada.service';
|
import { TipoEntradaService } from './tipo-entrada.service';
|
||||||
|
|
||||||
@Controller('tipo-entrada')
|
@Controller('tipo-entrada')
|
||||||
export class TipoEntradaController {
|
export class TipoEntradaController {
|
||||||
constructor(private tipoEntradaService: TipoEntradaService) {}
|
constructor(private tipoEntradaService: TipoEntradaService) {}
|
||||||
|
|
||||||
|
@Get()
|
||||||
|
get() {}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { Module } from '@nestjs/common';
|
import { Module } from '@nestjs/common';
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
import { TipoEntradaController } from './tipo-entrada.controller';
|
import { TipoEntradaController } from './tipo-entrada.controller';
|
||||||
import { TipoEntrada } from './tipo-entrada.entity';
|
|
||||||
import { TipoEntradaService } from './tipo-entrada.service';
|
import { TipoEntradaService } from './tipo-entrada.service';
|
||||||
|
import { TipoEntrada } from './entity/tipo-entrada.entity';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [TypeOrmModule.forFeature([TipoEntrada])],
|
imports: [TypeOrmModule.forFeature([TipoEntrada])],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from '@nestjs/common';
|
import { Injectable } from '@nestjs/common';
|
||||||
import { Repository } from 'typeorm';
|
|
||||||
import { InjectRepository } from '@nestjs/typeorm';
|
import { InjectRepository } from '@nestjs/typeorm';
|
||||||
import { TipoEntrada } from './tipo-entrada.entity';
|
import { Repository } from 'typeorm';
|
||||||
|
import { TipoEntrada } from './entity/tipo-entrada.entity';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class TipoEntradaService {
|
export class TipoEntradaService {
|
||||||
|
Loading…
Reference in New Issue
Block a user