Files
jarri-spooty/spooty-be/src/app.module.ts
T
2024-06-22 17:06:41 +02:00

28 lines
751 B
TypeScript

import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { ScheduleModule } from '@nestjs/schedule';
import {TypeOrmModule} from '@nestjs/typeorm';
import {TrackEntity} from "./track/track.entity";
import {TrackModule} from "./track/track.module";
import {PlaylistModule} from "./playlist/playlist.module";
import {PlaylistEntity} from "./playlist/playlist.entity";
@Module({
imports: [
ScheduleModule.forRoot(),
TypeOrmModule.forRoot({
type: 'sqlite',
database: 'test.sqlite',
entities: [TrackEntity, PlaylistEntity],
synchronize: true,
}),
TrackModule,
PlaylistModule,
],
controllers: [
AppController,
],
providers: [],
})
export class AppModule {}