You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.3 KiB
TypeScript

import { Module } from '@nestjs/common';
import { ScheduleModule } from '@nestjs/schedule';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { mysql_config } from './config/config.mysql';
import { ConfigModule } from './config/config.module';
import { AuthModule } from './auth/auth.module';
import { UserModule } from './user/user.module';
import { RoleModule } from './role/role.module';
import { FileModule } from './file/file.module';
import { VisitorEntity } from './visitor.entity';
import { NodeVisitorEntity } from './node-visitor.entity';
import { NodeOtherVisitorEntity } from './node-other-visitor.entity';
import { AreaEntity } from './area.entity';
import { DeviceEntity } from './device.entity';
import { UserEntity } from './user/user.entity';
@Module({
imports: [
ConfigModule,
AuthModule,
UserModule,
TypeOrmModule.forRoot(mysql_config),
TypeOrmModule.forFeature([
VisitorEntity,
NodeVisitorEntity,
NodeOtherVisitorEntity,
AreaEntity,
DeviceEntity,
UserEntity
]),
ScheduleModule.forRoot(),
RoleModule,
FileModule,
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule { }