mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-30 01:25:02 -07:00
data persistance init
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { Global, Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
|
||||
import { ClientEntity } from './client.entity';
|
||||
import { ClientService } from './client.service';
|
||||
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([ClientEntity])],
|
||||
providers: [ClientService],
|
||||
exports: [TypeOrmModule, ClientService],
|
||||
})
|
||||
export class ClientModule { }
|
||||
Reference in New Issue
Block a user