mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-14 00:31:12 +10:00
16 lines
407 B
TypeScript
16 lines
407 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { AppDataSource } from './typeorm.config';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forRoot({
|
|
...AppDataSource.options,
|
|
entities: ['dist/src/**/*.entity.{ts,js}'],
|
|
migrations: ['dist/src/**/migrations/*.{ts,js}'],
|
|
autoLoadEntities: true,
|
|
}),
|
|
],
|
|
})
|
|
export class DatabaseModule {}
|