Added Formular and Field
This commit is contained in:
@@ -6,11 +6,9 @@ import { MercuriusDriver, MercuriusDriverConfig } from '@nestjs/mercurius';
|
||||
import { EventsModule } from './events/events.module';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { EventEntity } from './events/events.entity';
|
||||
import { FormularController } from './formular/formular.controller';
|
||||
import { FormularService } from './formular/formular.service';
|
||||
import { FieldsService } from './fields/fields.service';
|
||||
import { FormularModule } from './formular/formular.module';
|
||||
import { FieldsModule } from './fields/fields.module';
|
||||
import { FormularEntity } from './formular/formular.entity';
|
||||
import { FieldEntity } from './formular/fields.entity';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -28,15 +26,13 @@ import { FieldsModule } from './fields/fields.module';
|
||||
password: process.env.DB_PASSWORD || 'root',
|
||||
database: process.env.DB_NAME || 'ritzenbergen',
|
||||
synchronize: true,
|
||||
entities: [EventEntity]
|
||||
entities: [EventEntity, FormularEntity,FieldEntity]
|
||||
}),
|
||||
FormularModule,
|
||||
FieldsModule,
|
||||
|
||||
|
||||
],
|
||||
controllers: [AppController, FormularController],
|
||||
providers: [AppService, AppController, FormularService, FieldsService],
|
||||
controllers: [AppController],
|
||||
providers: [AppService, AppController],
|
||||
|
||||
})
|
||||
export class AppModule {}
|
||||
|
||||
Reference in New Issue
Block a user