Cambios en las relaciones de evento, participante_evento y participante.
This commit is contained in:
+32
-3
@@ -1,3 +1,4 @@
|
||||
//import { Module } from '@nestjs/common;
|
||||
import { Module } from '@nestjs/common';
|
||||
import { AppController } from './app.controller';
|
||||
import { AppService } from './app.service';
|
||||
@@ -15,14 +16,22 @@ import { CuestionarioRespondidoModule } from './cuestionario_respondido/cuestion
|
||||
import { RespuestaParticipanteAbiertaModule } from './respuesta_participante_abierta/respuesta_participante_abierta.module';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
import { EventoModule } from './evento/evento.module';
|
||||
import { TipoUserModule } from './tipo_user/tipo_user.module';
|
||||
import { ParticipanteModule } from './participante/participante.module';
|
||||
import { QrModule } from './qr/qr.module';
|
||||
import { AdministradorModule } from './administrador/administrador.module';
|
||||
import { AsistenciaModule } from './asistencia/asistencia.module';
|
||||
import { ParticipanteEventoModule } from './participante_evento/participante_evento.module';
|
||||
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
ConfigModule.forRoot(),
|
||||
TypeOrmModule.forRoot({
|
||||
/*
|
||||
type: 'mysql',
|
||||
host: process.env.db_host,
|
||||
host: process.env.db_host, //process.env.db_host
|
||||
username: process.env.db_username,
|
||||
database: process.env.db_database,
|
||||
password: process.env.db_password,
|
||||
@@ -31,7 +40,19 @@ import { ConfigModule } from '@nestjs/config';
|
||||
dropSchema: true, // elimina la base de datos
|
||||
// logging: true, // Habilita los logs para depuración
|
||||
autoLoadEntities: true, // Carga automáticamente las entidades
|
||||
|
||||
*/
|
||||
//esta es mi base de datos local
|
||||
type: 'mysql',
|
||||
host: 'localhost',
|
||||
port: 3306, //3306
|
||||
username: 'root',
|
||||
password: 'admin', //admin
|
||||
database: 'cidwa', //nestdb
|
||||
entities: [__dirname + '/**/*.entity{.ts,.js}'],
|
||||
synchronize: true,
|
||||
//extra
|
||||
retryAttempts: 10, // Intentos para reconectar
|
||||
retryDelay: 3000, // Tiempo entre reintentos
|
||||
}),
|
||||
CuestionarioModule,
|
||||
TipoCuestionarioModule,
|
||||
@@ -43,7 +64,15 @@ import { ConfigModule } from '@nestjs/config';
|
||||
OpcionModule, PreguntaOpcionModule,
|
||||
RespuestaParticipanteCerradaModule,
|
||||
CuestionarioRespondidoModule,
|
||||
RespuestaParticipanteAbiertaModule],
|
||||
RespuestaParticipanteAbiertaModule,
|
||||
EventoModule,
|
||||
TipoUserModule,
|
||||
ParticipanteModule,
|
||||
QrModule,
|
||||
AdministradorModule,
|
||||
AsistenciaModule,
|
||||
ParticipanteEventoModule,
|
||||
],
|
||||
|
||||
controllers: [AppController],
|
||||
providers: [AppService],
|
||||
|
||||
Reference in New Issue
Block a user